Fix clouds disappearing in the middle of map
authorunc0rr
Mon, 26 Jan 2009 15:57:16 +0000
changeset 1762 fe79315a0b66
parent 1761 c7038eade58d
child 1763 9f5b80e57e58
Fix clouds disappearing in the middle of map
hedgewars/uVisualGears.pas
--- a/hedgewars/uVisualGears.pas	Mon Jan 26 15:56:36 2009 +0000
+++ b/hedgewars/uVisualGears.pas	Mon Jan 26 15:57:16 2009 +0000
@@ -110,7 +110,7 @@
 	end;
 
 if hwRound(Gear^.X) < -cScreenWidth - 256 then Gear^.X:= int2hwFloat(cScreenWidth + 2048) else
-if hwRound(Gear^.X) > cScreenWidth + 2048 then Gear^.X:= int2hwFloat(-cScreenWidth - 256)
+if hwRound(Gear^.X) > cScreenWidth + LAND_WIDTH then Gear^.X:= int2hwFloat(-cScreenWidth - 256)
 end;
 
 procedure doStepExpl(Gear: PVisualGear; Steps: Longword);