drawn maps have a fixed 4096x2048 area right now
authornemo
Thu, 23 Aug 2012 14:16:08 -0400
changeset 7583 8a9edc7cf98f
parent 7581 ea509b70e03d
child 7585 9158f06ffb44
drawn maps have a fixed 4096x2048 area right now
hedgewars/uLandPainted.pas
--- 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