From cc7f0a9c9ed703e0c9f5126b6cbf8015f39192fb Mon Sep 17 00:00:00 2001 From: binarymaster Date: Sat, 10 Jun 2017 20:03:59 +0300 Subject: [PATCH] Revert one line that breaks rocket parkour feature --- src/game/g_weapons.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/g_weapons.pas b/src/game/g_weapons.pas index 43a02a2..68843d2 100644 --- a/src/game/g_weapons.pas +++ b/src/game/g_weapons.pas @@ -1205,7 +1205,7 @@ begin Obj.Rect.Width := SHOT_ROCKETLAUNCHER_WIDTH; Obj.Rect.Height := SHOT_ROCKETLAUNCHER_HEIGHT; - dx := -(Obj.Rect.Width div 2); + dx := IfThen(xd > x, -Obj.Rect.Width, 0); dy := -(Obj.Rect.Height div 2); throw(find_id, x+dx, y+dy, xd+dx, yd+dy, 12); -- 2.29.2