From a62f16c86d529620b5d104a9ebc1c51544b922a1 Mon Sep 17 00:00:00 2001 From: smatz Date: Sat, 19 Dec 2009 21:42:19 +0000 Subject: [PATCH] (svn r18550) -Fix (r18281): show expected price of town construction even when the company doesn't have enough money --- src/town_cmd.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 18a4b36463..59745237dc 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -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;