mirror of https://github.com/OpenRCT2/OpenRCT2.git
fixed ride profit calculation
looks like there was a cast to money16 that was making it go negative
This commit is contained in:
parent
a978a931e7
commit
91207bb837
|
@ -1077,7 +1077,7 @@ static void ride_update(int rideIndex)
|
|||
ride->var_14D |= 2;
|
||||
|
||||
if (ride->upkeep_cost != (money16)0xFFFF)
|
||||
ride->profit = (money16)(ride->income_per_hour - ((money32)ride->upkeep_cost * 16));
|
||||
ride->profit = (ride->income_per_hour - ((money32)ride->upkeep_cost * 16));
|
||||
}
|
||||
|
||||
// Ride specific updates
|
||||
|
|
Loading…
Reference in New Issue