Change Squad.IsEmpty -> IsValid.
This commit is contained in:
@@ -61,14 +61,11 @@ namespace OpenRA.Mods.RA.AI
|
||||
|
||||
public void Update()
|
||||
{
|
||||
if (IsEmpty) return;
|
||||
fsm.Update(this);
|
||||
if (IsValid)
|
||||
fsm.Update(this);
|
||||
}
|
||||
|
||||
public bool IsEmpty
|
||||
{
|
||||
get { return !units.Any(); }
|
||||
}
|
||||
public bool IsValid { get { return units.Any(); } }
|
||||
|
||||
public Actor Target
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user