void-packages/srcpkgs/hedgewars/patches/fpc-3.2.0.patch
2020-09-28 14:57:50 +02:00

13 lines
358 B
Diff

--- hedgewars/uWorld.pas
+++ hedgewars/uWorld.pas
@@ -1168,8 +1168,8 @@ procedure RenderAttackBar();
procedure ShiftWorld(Dir: LongInt); inline;
begin
preShiftWorldDx:= WorldDx;
- WorldDx:= WorldDx + LongInt(Dir * LongInt(playWidth));
-
+ Dir := Dir * LongInt(playWidth);
+ WorldDx:= WorldDx + Dir;
end;
procedure UnshiftWorld(); inline;