mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 21:33:51 +00:00
(svn r18550) -Fix (r18281): show expected price of town construction even when the company doesn't have enough money
This commit is contained in:
parent
d48ad4b6e3
commit
a62f16c86d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user