hedgewars/uLandPainted.pas
changeset 7583 8a9edc7cf98f
parent 7287 c0825f15272e
child 9080 9b42757d7e71
--- a/hedgewars/uLandPainted.pas	Wed Aug 22 22:10:47 2012 -0400
+++ b/hedgewars/uLandPainted.pas	Thu Aug 23 14:16:08 2012 -0400
@@ -58,9 +58,9 @@
         rec.X:= SDLNet_Read16(@rec.X);
         rec.Y:= SDLNet_Read16(@rec.Y);
         if rec.X < -318 then rec.X:= -318;
-        if rec.X > LAND_WIDTH+318 then rec.X:= LAND_WIDTH+318;
+        if rec.X > 4096+318 then rec.X:= 4096+318;
         if rec.Y < -318 then rec.Y:= -318;
-        if rec.Y > LAND_HEIGHT+318 then rec.Y:= LAND_HEIGHT+318;
+        if rec.Y > 2048+318 then rec.Y:= 2048+318;
 
         new(pe);
         if pointsListLast = nil then