Refund the *old* player when a production structure is captured.

This commit is contained in:
Paul Chote
2014-06-26 22:52:29 +12:00
parent 4db2cf6b2b
commit a9635e8c4a

View File

@@ -119,10 +119,11 @@ namespace OpenRA.Mods.RA
public void OnOwnerChanged(Actor self, Player oldOwner, Player newOwner)
{
ClearQueue();
playerPower = newOwner.PlayerActor.Trait<PowerManager>();
playerResources = newOwner.PlayerActor.Trait<PlayerResources>();
developerMode = newOwner.PlayerActor.Trait<DeveloperMode>();
ClearQueue();
if (!Info.Sticky)
{