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

This commit is contained in:
chrisf
2007-07-14 07:17:31 +00:00
parent 6cffb2ebb5
commit 9f364cfdc7
8 changed files with 13 additions and 11 deletions

View File

@@ -10,7 +10,7 @@ namespace OpenRa.Game
{
public Tree(TreeReference r, TreeCache renderer, Map map)
{
location = new PointF(24 * (r.X - map.XOffset), 24 * (r.Y - map.YOffset));
location = 24 * (new float2(r.Location) - new float2(map.XOffset, map.YOffset));
currentImages = new Sprite[] { renderer.GetImage(r.Image) };
}