diff options
Diffstat (limited to 'games/hedgewars/fpc-3.2.0.patch')
-rw-r--r-- | games/hedgewars/fpc-3.2.0.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games/hedgewars/fpc-3.2.0.patch b/games/hedgewars/fpc-3.2.0.patch new file mode 100644 index 0000000000..042997cf3c --- /dev/null +++ b/games/hedgewars/fpc-3.2.0.patch @@ -0,0 +1,20 @@ +Description: Fix/Workaround build failure with newer fpc 3.2.0 +Origin: http://hg.hedgewars.org/hedgewars/rev/6832dab555ae +Bug-Debian: https://bugs.debian.org/968125 +Last-Update: 2020-08-10 + +--- a/hedgewars/uWorld.pas Sun Aug 09 14:43:02 2020 +0200 ++++ b/hedgewars/uWorld.pas Mon Aug 10 12:56:53 2020 +0300 +@@ -1129,8 +1129,8 @@ + 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; + + |