diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/command.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |