hedgewars/uWorld.pas
changeset 2373 e3989519731b
parent 2372 f3e7a066c2b8
child 2374 d584bb4b836e
--- a/hedgewars/uWorld.pas	Thu Sep 10 12:42:01 2009 +0000
+++ b/hedgewars/uWorld.pas	Thu Sep 10 12:46:56 2009 +0000
@@ -287,8 +287,7 @@
     w:= SpritesData[spr].Width;
     i:= Shift mod w;
     if i > 0 then dec(i, w);
-    dec(i, sw);
-    //addfilelog(inttostr(sw));
+    dec(i, w * (sw div w + 1));
     repeat
       DrawSprite(spr, i, WorldDy + LAND_HEIGHT - SpritesData[spr].Height, 0);
       inc(i, w)