moved Game.players, LocalPlayer, localPlayerIndex to World. Setting LocalPlayer via settings is broken.
This commit is contained in:
@@ -12,7 +12,7 @@ namespace OpenRa.Traits.Activities
|
||||
{
|
||||
self.Health = 0;
|
||||
Game.world.Remove( self );
|
||||
if (self.Owner == Game.LocalPlayer)
|
||||
if (self.Owner == Game.world.LocalPlayer)
|
||||
{
|
||||
Sound.Play("placbldg.aud");
|
||||
Sound.Play("build5.aud");
|
||||
|
||||
Reference in New Issue
Block a user