map.Offset is no long necessary in so many places. (removed BS where world-coords != map-coords)
This commit is contained in:
@@ -14,15 +14,15 @@ namespace OpenRa.Game
|
||||
class Actor
|
||||
{
|
||||
public readonly TypeDictionary traits = new TypeDictionary();
|
||||
public readonly UnitInfo unitInfo;
|
||||
|
||||
public readonly UnitInfo unitInfo;
|
||||
|
||||
public readonly uint ActorID;
|
||||
public int2 Location;
|
||||
public Player Owner;
|
||||
public int Health;
|
||||
|
||||
public Actor( string name, int2 location, Player owner )
|
||||
{
|
||||
{
|
||||
ActorID = Game.world.NextAID();
|
||||
unitInfo = Rules.UnitInfo[ name ];
|
||||
Location = location;
|
||||
@@ -44,9 +44,9 @@ namespace OpenRa.Game
|
||||
+ "; add Traits= to units.ini for appropriate unit" );
|
||||
}
|
||||
|
||||
public Actor( TreeReference tree, TreeCache treeRenderer, int2 mapOffset )
|
||||
public Actor( TreeReference tree, TreeCache treeRenderer )
|
||||
{
|
||||
Location = new int2( tree.Location ) - mapOffset;
|
||||
Location = new int2( tree.Location );
|
||||
traits.Add( new Traits.Tree( treeRenderer.GetImage( tree.Image ) ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user