update the shroud for the player setting diplomatic stances

fixes #2942
This commit is contained in:
Matthias Mailänder
2013-04-20 19:09:10 +02:00
parent 7508b3f6e3
commit f6908e45d3

View File

@@ -213,6 +213,7 @@ namespace OpenRA.Network
var oldStance = p.Stances[target];
p.Stances[target] = s;
target.Shroud.UpdatePlayerStance(w, p, oldStance, s);
p.Shroud.UpdatePlayerStance(w, target, oldStance, s);
foreach (var nsc in w.ActorsWithTrait<INotifyStanceChanged>())
nsc.Trait.StanceChanged(nsc.Actor, p, target, oldStance, s);