branch | 0.5 |
changeset 5541 | 08e4afe5e927 |
parent 5499 | d8a566b68999 |
child 5542 | c719509fb0b7 |
--- a/command.c Sun Sep 09 16:59:56 2007 +0000 +++ b/command.c Sun Sep 09 20:36:15 2007 +0000 @@ -537,7 +537,7 @@ SubtractMoneyFromPlayer(res2); if (IsLocalPlayer() && _game_mode != GM_EDITOR) { - if (res2 != 0) ShowCostOrIncomeAnimation(x, y, GetSlopeZ(x, y), res2); + if (res2 != 0 && tile != 0) ShowCostOrIncomeAnimation(x, y, GetSlopeZ(x, y), res2); if (_additional_cash_required) { SetDParam(0, _additional_cash_required); ShowErrorMessage(STR_0003_NOT_ENOUGH_CASH_REQUIRES, error_part1, x,y);