--- a/hedgewars/uIO.pas Thu Jan 03 17:57:31 2019 +0100
+++ b/hedgewars/uIO.pas Thu Jan 03 19:46:48 2019 +0100
@@ -527,13 +527,14 @@
TargetPoint.X:= CursorPoint.X - WorldDx;
TargetPoint.Y:= cScreenHeight - CursorPoint.Y - WorldDy;
end;
- if (WorldEdge <> weBounce) then
+ if (WorldEdge <> weBounce) and ((Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NoWrapTarget) = 0) then
TargetPoint.X:= CalcWorldWrap(TargetPoint.X, 0);
SendIPCXY('p', TargetPoint.X, TargetPoint.Y);
end
else
begin
- TargetPoint.X:= CalcWorldWrap(TargetPoint.X, 0);
+ if (Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NoWrapTarget) = 0 then
+ TargetPoint.X:= CalcWorldWrap(TargetPoint.X, 0);
TargetPoint.X:= putX;
TargetPoint.Y:= putY
end;