economy.c
changeset 541 625227bb2a3d
parent 534 306bc86eb23e
child 543 946badd71033
equal deleted inserted replaced
540:2987d7976ea2 541:625227bb2a3d
  1386 		if (profit != 0) {
  1386 		if (profit != 0) {
  1387 			v->profit_this_year += profit;
  1387 			v->profit_this_year += profit;
  1388 			SubtractMoneyFromPlayer(-profit);
  1388 			SubtractMoneyFromPlayer(-profit);
  1389 
  1389 
  1390 			if (_current_player == _local_player)
  1390 			if (_current_player == _local_player)
  1391 				SndPlayVehicleFx(0x12, v);
  1391 				SndPlayVehicleFx(SND_14_CASHTILL, v);
  1392 
  1392 
  1393 			ShowCostOrIncomeAnimation(v->x_pos, v->y_pos, v->z_pos, -profit);
  1393 			ShowCostOrIncomeAnimation(v->x_pos, v->y_pos, v->z_pos, -profit);
  1394 		}
  1394 		}
  1395 	}
  1395 	}
  1396 
  1396