DEADSOFTWARE

Revert one line that breaks rocket parkour feature
authorbinarymaster <x86corez@gmail.com>
Sat, 10 Jun 2017 17:03:59 +0000 (20:03 +0300)
committerbinarymaster <x86corez@gmail.com>
Sat, 10 Jun 2017 17:03:59 +0000 (20:03 +0300)
src/game/g_weapons.pas

index 43a02a25ead779c9c08bdbac902b6683811abaa5..68843d20c3d2e20528ae1fb449142a2960306550 100644 (file)
@@ -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);