make cash ticks consistent with per-player shroud and observers

This commit is contained in:
Matthias Mailänder
2013-05-11 13:01:33 +02:00
parent 05d187d327
commit f4a4afbb69
4 changed files with 5 additions and 5 deletions

View File

@@ -92,7 +92,7 @@ namespace OpenRA.Mods.RA
if (Info.ShowTicks && currentDisplayValue > 0 && --currentDisplayTick <= 0)
{
var temp = currentDisplayValue;
if (self.World.LocalPlayer != null && self.Owner.Stances[self.World.LocalPlayer] == Stance.Ally)
if (self.Owner.IsAlliedWith(self.World.RenderPlayer))
self.World.AddFrameEndTask(w => w.Add(new CashTick(temp, Info.TickLifetime, Info.TickVelocity, self.CenterLocation, self.Owner.Color.RGB)));
currentDisplayTick = Info.TickRate;
currentDisplayValue = 0;