# HG changeset patch # User smatz # Date 1261258939 0 # Node ID 6eca3533ed1d0938e1c3f478431a861d2b1eca4e # Parent 15f1cb47c4ef05ded09f6123744b7019da5c7f95 (svn r18550) -Fix (r18281): show expected price of town construction even when the company doesn't have enough money diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp --- 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;