mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
fixed ride profit calculation
looks like there was a cast to money16 that was making it go negative
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user