1
0
forked from 0ad/0ad

Allow replace with 0.

This was SVN commit r11726.
This commit is contained in:
leper 2012-05-03 18:03:57 +00:00
parent 5b7027ec53
commit 825e1ec7a3

View File

@ -343,7 +343,7 @@ TechnologyManager.prototype.ApplyModificationsWorker = function(valueName, curVa
retValue += (modification.multiplier - 1) * curValue;
else if (modification.add)
retValue += modification.add;
else if (modification.replace) // This will depend on ordering because there is no choice
else if (modification.replace !== undefined) // This will depend on ordering because there is no choice
retValue = modification.replace;
else
warn("modification format not recognised (modifying " + valueName + "): " + uneval(modification));