]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mutators/mutator/dodging/sv_dodging.qc
declare vars explicitly
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / dodging / sv_dodging.qc
index 6d645cc43209f4355b907c7b1df4ad2ab76e363e..652f7a2b7b8e9aa7c4a19d7f5832cd769224aed2 100644 (file)
@@ -180,7 +180,8 @@ bool PM_dodging_checkpressedkeys(entity this)
        if ((time - this.last_dodging_time) < PHYS_DODGING_DELAY)
                return false;
 
-       MAKE_VECTORS_NEW(this.angles, forward, right, up);
+       vector forward, right, up;
+       MAKE_VECTORS(this.angles, forward, right, up);
 
        bool can_dodge = (is_close_to_ground(this, PHYS_DODGING_HEIGHT_THRESHOLD, up) && (PHYS_DODGING_MAXSPEED == 0 || vdist(this.velocity, <, PHYS_DODGING_MAXSPEED)));
        bool can_wall_dodge = (PHYS_DODGING_WALL && is_close_to_wall(this, PHYS_DODGING_DISTANCE_THRESHOLD, forward, right));
@@ -221,7 +222,7 @@ void PM_dodging(entity this)
                return;
        }
 
-       vector forward = '0 0 0', right = '0 0 0', up = '0 0 0';
+       vector forward, right, up;
        if(PHYS_DODGING_AIR)
                MAKE_VECTORS(this.v_angle, forward, right, up);
        else