refresh GPS on stance change

This commit is contained in:
Chris Forbes
2011-02-13 16:26:06 +13:00
parent 6281fa481f
commit c1aebff8a8
3 changed files with 15 additions and 9 deletions

View File

@@ -191,7 +191,7 @@ namespace OpenRA.Network
w.WorldActor.Trait<Shroud>().UpdatePlayerStance(w, p, oldStance, s);
foreach (var nsc in w.Queries.WithTrait<INotifyStanceChanged>())
nsc.Trait.StanceChanged(p, target, oldStance, s);
nsc.Trait.StanceChanged(nsc.Actor, p, target, oldStance, s);
}
}
}

View File

@@ -229,5 +229,6 @@ namespace OpenRA.Traits
}
public interface INotifyKeyPress { bool KeyPressed(Actor self, KeyInput e); }
public interface INotifyStanceChanged { void StanceChanged(Player a, Player b, Stance oldStance, Stance newStance); }
public interface INotifyStanceChanged { void StanceChanged(Actor self, Player a, Player b,
Stance oldStance, Stance newStance); }
}