hedgewars/uWorld.pas
branch1.0.0
changeset 15816 b0fe8c8d0bb5
parent 15436 617f4c092e3d
child 15835 f0f615dcbe7c
--- a/hedgewars/uWorld.pas	Tue Apr 13 15:40:11 2021 -0400
+++ 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;