src/command.cpp
changeset 7506 93b2cbcce3d6
parent 7266 b16e67e992b4
child 7521 0da1e91510e4
equal deleted inserted replaced
7505:55e7acbf7a69 7506:93b2cbcce3d6
   568 	}
   568 	}
   569 
   569 
   570 	SubtractMoneyFromPlayer(res2);
   570 	SubtractMoneyFromPlayer(res2);
   571 
   571 
   572 	if (IsLocalPlayer() && _game_mode != GM_EDITOR) {
   572 	if (IsLocalPlayer() && _game_mode != GM_EDITOR) {
   573 		if (res2.GetCost() != 0) ShowCostOrIncomeAnimation(x, y, GetSlopeZ(x, y), res2.GetCost());
   573 		if (res2.GetCost() != 0 && tile != 0) ShowCostOrIncomeAnimation(x, y, GetSlopeZ(x, y), res2.GetCost());
   574 		if (_additional_cash_required != 0) {
   574 		if (_additional_cash_required != 0) {
   575 			SetDParam(0, _additional_cash_required);
   575 			SetDParam(0, _additional_cash_required);
   576 			if (my_cmd) ShowErrorMessage(STR_0003_NOT_ENOUGH_CASH_REQUIRES, error_part1, x, y);
   576 			if (my_cmd) ShowErrorMessage(STR_0003_NOT_ENOUGH_CASH_REQUIRES, error_part1, x, y);
   577 			if (res2.GetCost() == 0) goto callb_err;
   577 			if (res2.GetCost() == 0) goto callb_err;
   578 		}
   578 		}