From: binarymaster Date: Sat, 10 Jun 2017 17:03:59 +0000 (+0300) Subject: Revert one line that breaks rocket parkour feature X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=cc7f0a9c9ed703e0c9f5126b6cbf8015f39192fb;p=d2df-sdl.git Revert one line that breaks rocket parkour feature --- 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);