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;
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);
dy := -(Obj.Rect.Height div 2);
throw(find_id, x+dx, y+dy, xd+dx, yd+dy, 12);