Fix the resign problem with capturing

This was SVN commit r16553.
This commit is contained in:
sanderd17
2015-04-20 16:22:48 +00:00
parent 535d612e06
commit 6766401510
@@ -196,7 +196,10 @@ Capturable.prototype.OnOwnershipChanged = function(msg)
{
this.startRegenTimer();
if (msg.from != -1)
// if the new owner has no capture points, it means that either
// * it's being initialised now, or
// * it changed ownership for a different reason (defeat, atlas, ...)
if (this.cp[msg.to])
return;
// initialise the capture points when created