From 43e2f03ec1bd43efbc806a364970f6b986251582 Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Mon, 6 Feb 2023 11:06:12 +0100 Subject: [PATCH] fix use of STAT() macro for target_speed --- qcsrc/common/mapobjects/target/speed.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2