Fix wall-placement cost tooltip, refs #3934.
This was SVN commit r18980.
This commit is contained in:
parent
a8b9416725
commit
f391f113f9
@ -1572,8 +1572,8 @@ GuiInterface.prototype.SetWallPlacementPreview = function(player, cmd)
|
||||
// copied over, so we need to fetch it from the template instead).
|
||||
// TODO: we should really use a Cost object or at least some utility functions for this, this is mindless
|
||||
// boilerplate that's probably duplicated in tons of places.
|
||||
for (let res of Resources.GetCodes().concat("population", "populationBonus", "time"))
|
||||
result.cost[res] = tplData.cost[res];
|
||||
for (let res of Resources.GetCodes().concat(["population", "populationBonus", "time"]))
|
||||
result.cost[res] += tplData.cost[res];
|
||||
}
|
||||
|
||||
let canAfford = true;
|
||||
|
Loading…
Reference in New Issue
Block a user