mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-11 00:16:56 +00:00
Fix the resign problem with capturing
This was SVN commit r16553.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user