mirror of https://github.com/OpenRCT2/OpenRCT2.git
fix ride profit calculation, fixes #603
This commit is contained in:
parent
35145f897b
commit
1266f19a5c
|
@ -1068,7 +1068,7 @@ static void ride_update(int rideIndex)
|
||||||
ride->var_14D |= 2;
|
ride->var_14D |= 2;
|
||||||
|
|
||||||
if (ride->upkeep_cost != (money16)0xFFFF)
|
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
|
// Ride specific updates
|
||||||
|
|
Loading…
Reference in New Issue