Apply review suggestions

This commit is contained in:
ζeh Matt committed 2023-03-22 21:51:52 +02:00
1 parent 9610578621
commit 1ae20ca3f2
2 files changed
+2 -7

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ namespace OpenRCT2
constexpr uint32_t PARK_FILE_CURRENT_VERSION = 21;
// The minimum version that is forwards compatible with the current version.
constexpr uint32_t PARK_FILE_MIN_VERSION = 19;
constexpr uint32_t PARK_FILE_MIN_VERSION = 21;
// The minimum version that is backwards compatible with the current version.
// If this is increased beyond 0, uncomment the checks in ParkFile.cpp and Context.cpp!
+1 -6
View File
@@ -6,6 +6,7 @@
*
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include "RideRatings.h"
#include "../Cheats.h"
@@ -109,12 +110,6 @@ void RideRatingResetUpdateStates()
std::fill(gRideRatingUpdateStates.begin(), gRideRatingUpdateStates.end(), nullState);
}
RideRatingUpdateState& RideRatingGetUpdateState(size_t index)
{
Guard::IndexInRange(index, gRideRatingUpdateStates);
return gRideRatingUpdateStates[index];
}
/**
* This is a small hack function to keep calling the ride rating processor until
* the given ride's ratings have been calculated. Whatever is currently being