Buildings with special rendering now skip their make animation. Removed IsMapActor; make-skipping is now controlled by a global in Game.
This commit is contained in:
@@ -21,12 +21,8 @@ namespace OpenRa.Game
|
||||
public int2 Location;
|
||||
public Player Owner;
|
||||
public int Health;
|
||||
public readonly bool IsMapActor;
|
||||
|
||||
public Actor(string name, int2 location, Player owner)
|
||||
: this( name, location, owner, false ) {}
|
||||
|
||||
public Actor( string name, int2 location, Player owner, bool isMapActor )
|
||||
public Actor( string name, int2 location, Player owner )
|
||||
{
|
||||
ActorID = Game.world.NextAID();
|
||||
unitInfo = Rules.UnitInfo[ name ];
|
||||
@@ -34,7 +30,6 @@ namespace OpenRa.Game
|
||||
CenterLocation = new float2( 12, 12 ) + Game.CellSize * (float2)Location;
|
||||
Owner = owner;
|
||||
Health = unitInfo.Strength; /* todo: handle cases where this is not true! */
|
||||
IsMapActor = isMapActor;
|
||||
|
||||
if( unitInfo.Traits != null )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user