command.c
branch0.5
changeset 5541 08e4afe5e927
parent 5499 d8a566b68999
child 5542 c719509fb0b7
equal deleted inserted replaced
5540:f96ccea118f5 5541:08e4afe5e927
   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 		}