git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1221 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
chrisf
2007-07-14 06:27:30 +00:00
parent 36491edc12
commit 6e0bf41569
5 changed files with 59 additions and 46 deletions

View File

@@ -30,10 +30,10 @@ namespace OpenRa.Game
if (images == null)
continue;
if (a.location.X > xr.End || a.location.X < xr.Start - images[0].size.Width)
if (a.location.X > xr.End || a.location.X < xr.Start - images[0].bounds.Width)
continue;
if (a.location.Y > yr.End || a.location.Y < yr.Start - images[0].size.Height)
if (a.location.Y > yr.End || a.location.Y < yr.Start - images[0].bounds.Height)
continue;
foreach (Sprite image in images)