--- a/hedgewars/uLand.pas Mon Jan 26 21:46:53 2009 +0000
+++ b/hedgewars/uLand.pas Tue Jan 27 15:34:37 2009 +0000
@@ -494,7 +494,16 @@
with FillPoints^[i] do
FillLand(x, y);
-DrawEdge(pa, COLOR_LAND)
+DrawEdge(pa, COLOR_LAND);
+
+if (Template.canInvert and (getrandom(2) = 0)) or
+ (not Template.canInvert and Template.isNegative) then
+ for y:= 0 to LAND_HEIGHT - 1 do
+ for x:= 0 to LAND_WIDTH - 1 do
+ if Land[y, x] = 0 then
+ Land[y, x]:= COLOR_LAND
+ else if Land[y, x] = COLOR_LAND then
+ Land[y, x]:= 0;
end;
function SelectTemplate: LongInt;