Mercurial > hg > openttd
changeset 14008:6eca3533ed1d draft
(svn r18550) -Fix (r18281): show expected price of town construction even when the company doesn't have enough money
author | smatz <smatz@openttd.org> |
---|---|
date | Sat, 19 Dec 2009 21:42:19 +0000 |
parents | 15f1cb47c4ef |
children | 809a3be57aef |
files | src/town_cmd.cpp |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -1566,13 +1566,13 @@ 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;