summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 553f1a9)
raw | patch | inline | side by side (parent: 553f1a9)
author | binarymaster <x86corez@gmail.com> | |
Sat, 10 Jun 2017 17:03:59 +0000 (20:03 +0300) | ||
committer | binarymaster <x86corez@gmail.com> | |
Sat, 10 Jun 2017 17:03:59 +0000 (20:03 +0300) |
src/game/g_weapons.pas | patch | blob | history |
diff --git a/src/game/g_weapons.pas b/src/game/g_weapons.pas
index 43a02a25ead779c9c08bdbac902b6683811abaa5..68843d20c3d2e20528ae1fb449142a2960306550 100644 (file)
--- a/src/game/g_weapons.pas
+++ b/src/game/g_weapons.pas
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);