]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix use of STAT() macro for target_speed
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 6 Feb 2023 10:06:12 +0000 (11:06 +0100)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 6 Feb 2023 10:06:12 +0000 (11:06 +0100)
qcsrc/common/mapobjects/target/speed.qc

index 1862f519813f496e782bd71dc2cbe322fbdde24d..35a5baf064257d134f7e88ade1ecdebea76bda3f 100644 (file)
@@ -50,7 +50,7 @@ vector target_speed_calculatevelocity(entity this, float speed, entity pushed_en
 
        float launcherspeed = 0;
 
-       if(!STAT(Q3COMPAT)) // no need to simulate this bug
+       if(!STAT(Q3COMPAT, pushed_entity)) // no need to simulate this bug
        {
                launcherspeed += speed;
                if(is_add) launcherspeed += oldspeed; // add the add speed in the same variable as it goes in the same direction
@@ -63,7 +63,7 @@ vector target_speed_calculatevelocity(entity this, float speed, entity pushed_en
                        if(is_launcher)
                        {
                                pushvel[i] = 1; // every direction weighs the same amount on launchers, movedir does not matter
-                               if(STAT(Q3COMPAT))
+                               if(STAT(Q3COMPAT, pushed_entity))
                                {
                                        launcherspeed += speed;
                                        if(is_add) launcherspeed += oldspeed; // add the add speed in the same variable as it goes in the same direction