From: Debian Games Team Date: Fri, 5 Aug 2022 15:21:55 +0000 (+0100) Subject: Fix/Workaround build failure with newer fpc 3.2.0 X-Git-Tag: archive/raspbian/1.0.0-19+rpi1^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b717cd35ba76367c050200bd60a8360eb593eec8;p=hedgewars.git 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 Gbp-Pq: Name fpc-3.2.0.patch --- diff --git a/hedgewars/uWorld.pas b/hedgewars/uWorld.pas index 1bd488a..740fcc5 100644 --- a/hedgewars/uWorld.pas +++ b/hedgewars/uWorld.pas @@ -1129,8 +1129,8 @@ var preShiftWorldDx: LongInt; 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;