1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-30 02:05:13 +01:00

fix ride profit calculation, fixes #603

This commit is contained in:
IntelOrca
2014-11-29 13:33:39 +00:00
parent 35145f897b
commit 1266f19a5c

View File

@@ -1068,7 +1068,7 @@ static void ride_update(int rideIndex)
ride->var_14D |= 2;
if (ride->upkeep_cost != (money16)0xFFFF)
ride->profit = (money16)ride->income_per_hour - (ride->upkeep_cost * 16);
ride->profit = (money16)(ride->income_per_hour - ((money32)ride->upkeep_cost * 16));
}
// Ride specific updates