1
0
forked from 0ad/0ad

Only count civ centres as destroyed if they aren't foundations.

This was SVN commit r12536.
This commit is contained in:
Deiz 2012-08-27 07:16:21 +00:00
parent 6a7e6ca343
commit 9db71f5417

View File

@ -97,7 +97,7 @@ StatisticsTracker.prototype.KilledEntity = function(targetEntity)
this.enemyUnitsKilled++;
if (targetIsStructure)
this.enemyBuildingsDestroyed++;
if (targetIsCivCentre)
if (targetIsCivCentre && targetIsStructure)
this.enemyCivCentresDestroyed++;
}
}