equal
deleted
inserted
replaced
535 } |
535 } |
536 |
536 |
537 SubtractMoneyFromPlayer(res2); |
537 SubtractMoneyFromPlayer(res2); |
538 |
538 |
539 if (IsLocalPlayer() && _game_mode != GM_EDITOR) { |
539 if (IsLocalPlayer() && _game_mode != GM_EDITOR) { |
540 if (res2 != 0) ShowCostOrIncomeAnimation(x, y, GetSlopeZ(x, y), res2); |
540 if (res2 != 0 && tile != 0) ShowCostOrIncomeAnimation(x, y, GetSlopeZ(x, y), res2); |
541 if (_additional_cash_required) { |
541 if (_additional_cash_required) { |
542 SetDParam(0, _additional_cash_required); |
542 SetDParam(0, _additional_cash_required); |
543 ShowErrorMessage(STR_0003_NOT_ENOUGH_CASH_REQUIRES, error_part1, x,y); |
543 ShowErrorMessage(STR_0003_NOT_ENOUGH_CASH_REQUIRES, error_part1, x,y); |
544 if (res2 == 0) goto callb_err; |
544 if (res2 == 0) goto callb_err; |
545 } |
545 } |