(svn r18550) -Fix (r18281): show expected price of town construction even when the company doesn't have enough money

This commit is contained in:
smatz 2009-12-19 21:42:19 +00:00
parent d48ad4b6e3
commit a62f16c86d
1 changed files with 5 additions and 5 deletions

View File

@ -1566,13 +1566,13 @@ CommandCost CmdFoundTown(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
cost.MultiplyCost(mult);
if (cost.GetCost() > GetAvailableMoneyForCommand()) {
_additional_cash_required = cost.GetCost();
return CommandCost(EXPENSES_OTHER);
}
/* Create the town */
if (flags & DC_EXEC) {
if (cost.GetCost() > GetAvailableMoneyForCommand()) {
_additional_cash_required = cost.GetCost();
return CommandCost(EXPENSES_OTHER);
}
_generating_world = true;
UpdateNearestTownForRoadTiles(true);
Town *t;