forked from mirrors/0ad
Fix changing ownership to -1
This was SVN commit r16756.
This commit is contained in:
@@ -253,6 +253,9 @@ Capturable.prototype.OnTerritoryDecayChanged = function(msg)
|
||||
|
||||
Capturable.prototype.OnOwnershipChanged = function(msg)
|
||||
{
|
||||
if (msg.to == -1)
|
||||
return; // we're dead
|
||||
|
||||
if (this.cp.length)
|
||||
{
|
||||
if (!this.cp[msg.from])
|
||||
|
||||
Reference in New Issue
Block a user