Fix coloring of map border at top left/right corner being wrong sometimes
authorWuzzy <Wuzzy2@mail.ru>
Fri, 14 Jun 2019 22:24:59 +0200
changeset 15144 adf6f9be8113
parent 15143 a344e20edfa1
child 15145 53342ce3f0a6
Fix coloring of map border at top left/right corner being wrong sometimes
hedgewars/uLand.pas
--- a/hedgewars/uLand.pas	Fri Jun 14 21:09:08 2019 +0200
+++ b/hedgewars/uLand.pas	Fri Jun 14 22:24:59 2019 +0200
@@ -826,7 +826,7 @@
         for x:= LongWord(leftX) to LongWord(rightX) do
             begin
             Land[topY + w, x]:= lfIndestructible;
-            if (x + w) mod 32 < 16 then
+            if (topY + x + w) mod 32 < 16 then
                 c:= AMask
             else
                 c:= AMask or RMask or GMask; // FF00FFFF