fixed #1257 - predict stance changes on the client
This commit is contained in:
@@ -32,12 +32,14 @@ namespace OpenRA.Mods.RA
|
||||
|
||||
[Sync] int nextScanTime = 0;
|
||||
[Sync] public UnitStance stance;
|
||||
public UnitStance predictedStance; /* NOT SYNCED: do not refer to this anywhere other than UI code */
|
||||
|
||||
public AutoTarget(Actor self, AutoTargetInfo info)
|
||||
{
|
||||
Info = info;
|
||||
attack = self.Trait<AttackBase>();
|
||||
stance = Info.InitialStance;
|
||||
predictedStance = stance;
|
||||
}
|
||||
|
||||
public void ResolveOrder(Actor self, Order order)
|
||||
|
||||
Reference in New Issue
Block a user