From 9695727120c3315c219d9b05492fb28d6aec99e1 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 31 Aug 2007 17:43:29 +0000 Subject: (svn r11021) -Fix [FS#1175]: do not display income/expenses when they do not belong to a "valid" tile, like the money cheat/giving money. --- src/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/command.cpp') diff --git a/src/command.cpp b/src/command.cpp index 8d7c745c7..c48b3418d 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -570,7 +570,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, SubtractMoneyFromPlayer(res2); if (IsLocalPlayer() && _game_mode != GM_EDITOR) { - if (res2.GetCost() != 0) ShowCostOrIncomeAnimation(x, y, GetSlopeZ(x, y), res2.GetCost()); + if (res2.GetCost() != 0 && tile != 0) ShowCostOrIncomeAnimation(x, y, GetSlopeZ(x, y), res2.GetCost()); if (_additional_cash_required != 0) { SetDParam(0, _additional_cash_required); if (my_cmd) ShowErrorMessage(STR_0003_NOT_ENOUGH_CASH_REQUIRES, error_part1, x, y); -- cgit v1.2.3-54-g00ecf