Changeset - r13998:593635edc238
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2009-12-19 21:42:19
smatz@openttd.org
(svn r18550) -Fix (r18281): show expected price of town construction even when the company doesn't have enough money
1 file changed with 5 insertions and 5 deletions:
0 comments (0 inline, 0 general)
src/town_cmd.cpp
Show inline comments
 
@@ -1566,13 +1566,13 @@ CommandCost CmdFoundTown(TileIndex tile,
 

	
 
	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;
0 comments (0 inline, 0 general)