Added int2.Clamp(Rectangle). All queries for map geometry use map.Bounds.

This commit is contained in:
Paul Chote
2010-11-24 12:24:48 +13:00
parent 1dfe437641
commit fc5830a687
14 changed files with 63 additions and 52 deletions

View File

@@ -35,7 +35,7 @@ namespace OpenRA.Mods.RA.Effects
if (silo == null)
{
altitude = silo.World.Map.Height*Game.CellSize;
altitude = silo.World.Map.Bounds.Height*Game.CellSize;
StartDescent(silo.World);
}
else
@@ -56,7 +56,7 @@ namespace OpenRA.Mods.RA.Effects
if (goingUp)
{
altitude += 10;
if (altitude >= world.Map.Height*Game.CellSize)
if (altitude >= world.Map.Bounds.Height*Game.CellSize)
StartDescent(world);
}
else