From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Mon, 6 Feb 2023 10:06:12 +0000 (+0100) Subject: fix use of STAT() macro for target_speed X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=43e2f03ec1bd43efbc806a364970f6b986251582;p=xonotic%2Fxonotic-data.pk3dir.git fix use of STAT() macro for target_speed --- diff --git a/qcsrc/common/mapobjects/target/speed.qc b/qcsrc/common/mapobjects/target/speed.qc index 1862f5198..35a5baf06 100644 --- a/qcsrc/common/mapobjects/target/speed.qc +++ b/qcsrc/common/mapobjects/target/speed.qc @@ -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