hedgewars/uTextures.pas
changeset 10078 8572d1f8b2f0
parent 10040 4ac87acbaed9
child 10108 c68cf030eded
--- a/hedgewars/uTextures.pas	Sun Jan 26 10:20:42 2014 +0400
+++ b/hedgewars/uTextures.pas	Mon Jan 27 00:33:42 2014 +0400
@@ -146,13 +146,13 @@
                 // invisible pixels get colors from visible neighbors
                 if cpi then
                     begin
-                    row1^[i]:= row1^[i-1] and not AMask;
+                    row1^[i]:= row1^[i-1] and (not AMask);
                     // as this pixel is invisible and already colored correctly now, no point in further comparing it
                     lpi:= cpi;
                     continue;
                     end
                 else
-                    row1^[i-1]:= row1^[i] and not AMask;
+                    row1^[i-1]:= row1^[i] and (not AMask);
                 end;
             end;
         lpi:= cpi;
@@ -163,9 +163,9 @@
             if cpi <> bpi then
                 begin
                 if cpi then
-                    row1^[i]:= row2^[i+ioffset] and not AMask
+                    row1^[i]:= row2^[i+ioffset] and (not AMask)
                 else
-                    row2^[i+ioffset]:= row1^[i] and not AMask;
+                    row2^[i+ioffset]:= row1^[i] and (not AMask);
                 end;
             end;
         end;