void-packages/srcpkgs/hedgewars/patches/fpc-3.2.0.patch

14 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;