fixed ride profit calculation

looks like there was a cast to money16 that was making it go negative
This commit is contained in:
Brian Smith 2015-02-10 20:50:14 -05:00
parent a978a931e7
commit 91207bb837
1 changed files with 1 additions and 1 deletions

View File

@ -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