Refund the *old* player when a production structure is captured.
This commit is contained in:
@@ -119,10 +119,11 @@ namespace OpenRA.Mods.RA
|
|||||||
|
|
||||||
public void OnOwnerChanged(Actor self, Player oldOwner, Player newOwner)
|
public void OnOwnerChanged(Actor self, Player oldOwner, Player newOwner)
|
||||||
{
|
{
|
||||||
|
ClearQueue();
|
||||||
|
|
||||||
playerPower = newOwner.PlayerActor.Trait<PowerManager>();
|
playerPower = newOwner.PlayerActor.Trait<PowerManager>();
|
||||||
playerResources = newOwner.PlayerActor.Trait<PlayerResources>();
|
playerResources = newOwner.PlayerActor.Trait<PlayerResources>();
|
||||||
developerMode = newOwner.PlayerActor.Trait<DeveloperMode>();
|
developerMode = newOwner.PlayerActor.Trait<DeveloperMode>();
|
||||||
ClearQueue();
|
|
||||||
|
|
||||||
if (!Info.Sticky)
|
if (!Info.Sticky)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user