mirror of https://github.com/OpenRCT2/OpenRCT2.git
Format code for #ifdefs in ride_ratings.c
This commit is contained in:
parent
223d377d09
commit
9830ca3561
|
@ -598,14 +598,14 @@ static void ride_ratings_calculate(rct_ride *ride)
|
||||||
calcFunc(ride);
|
calcFunc(ride);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ORIGINAL_RATINGS
|
#ifdef ORIGINAL_RATINGS
|
||||||
if (ride->ratings.excitement != -1) {
|
if (ride->ratings.excitement != -1) {
|
||||||
// Address underflows allowed by original RCT2 code
|
// Address underflows allowed by original RCT2 code
|
||||||
ride->ratings.excitement = max(0, ride->ratings.excitement);
|
ride->ratings.excitement = max(0, ride->ratings.excitement);
|
||||||
ride->ratings.intensity = max(0, ride->ratings.intensity);
|
ride->ratings.intensity = max(0, ride->ratings.intensity);
|
||||||
ride->ratings.nausea = max(0, ride->ratings.nausea);
|
ride->ratings.nausea = max(0, ride->ratings.nausea);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ride_ratings_calculate_value(rct_ride *ride)
|
static void ride_ratings_calculate_value(rct_ride *ride)
|
||||||
|
@ -761,7 +761,7 @@ static void ride_ratings_apply_adjustments(rct_ride *ride, rating_tuple *ratings
|
||||||
ratings->nausea += ((ratings->nausea * rideEntry->nausea_multipler ) >> 7);
|
ratings->nausea += ((ratings->nausea * rideEntry->nausea_multipler ) >> 7);
|
||||||
|
|
||||||
// Apply total air time
|
// Apply total air time
|
||||||
#ifdef ORIGINAL_RATINGS
|
#ifdef ORIGINAL_RATINGS
|
||||||
if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_HAS_AIR_TIME) {
|
if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_HAS_AIR_TIME) {
|
||||||
uint16 totalAirTime = ride->total_air_time;
|
uint16 totalAirTime = ride->total_air_time;
|
||||||
if (rideEntry->flags & RIDE_ENTRY_FLAG_11) {
|
if (rideEntry->flags & RIDE_ENTRY_FLAG_11) {
|
||||||
|
@ -775,7 +775,7 @@ static void ride_ratings_apply_adjustments(rct_ride *ride, rating_tuple *ratings
|
||||||
ratings->nausea += totalAirTime / 16;
|
ratings->nausea += totalAirTime / 16;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_HAS_AIR_TIME) {
|
if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_HAS_AIR_TIME) {
|
||||||
if (rideEntry->flags & RIDE_ENTRY_FLAG_11) {
|
if (rideEntry->flags & RIDE_ENTRY_FLAG_11) {
|
||||||
// Limit airtime bonus for heartline twister coaster (see issues #2031 and #2064)
|
// Limit airtime bonus for heartline twister coaster (see issues #2031 and #2064)
|
||||||
|
@ -785,7 +785,7 @@ static void ride_ratings_apply_adjustments(rct_ride *ride, rating_tuple *ratings
|
||||||
}
|
}
|
||||||
ratings->nausea += ride->total_air_time / 16;
|
ratings->nausea += ride->total_air_time / 16;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue