1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Add kParkRatingHistorySize constant

This commit is contained in:
reversebottle
2024-03-26 08:24:25 -04:00
committed by GitHub
parent 43507671b5
commit 7c65a372aa
5 changed files with 8 additions and 4 deletions

View File

@@ -731,7 +731,7 @@ static constexpr WindowParkAward _parkAwards[] = {
// Graph
screenPos = windowPos + ScreenCoordsXY{ widget->left + 47, widget->top + 26 };
Graph::Draw(dpi, GetGameState().ParkRatingHistory, 32, screenPos);
Graph::Draw(dpi, GetGameState().ParkRatingHistory, kParkRatingHistorySize, screenPos);
}
#pragma endregion

View File

@@ -24,6 +24,7 @@
#include "world/Banner.h"
#include "world/Climate.h"
#include "world/Location.hpp"
#include "world/Park.h"
#include <array>
#include <chrono>
@@ -52,7 +53,7 @@ namespace OpenRCT2
money64 ConstructionRightsPrice;
money64 CurrentExpenditure;
money64 CurrentProfit;
uint8_t ParkRatingHistory[32];
uint8_t ParkRatingHistory[kParkRatingHistorySize];
uint32_t GuestsInParkHistory[32];
ClimateType Climate;
ClimateState ClimateCurrent;

View File

@@ -11,6 +11,7 @@
#include "../rct12/RCT12.h"
#include "../ride/RideRatings.h"
#include "../world/Park.h"
#include "Limits.h"
namespace RCT1
@@ -772,7 +773,7 @@ namespace RCT1
uint16_t AvailableBanners;
uint8_t Unk1990AA[94];
uint16_t ParkRating;
uint8_t ParkRatingHistory[32];
uint8_t ParkRatingHistory[kParkRatingHistorySize];
uint8_t GuestsInParkHistory[32];
uint8_t ResearchPriority;
uint8_t ResearchProgressStage;

View File

@@ -13,6 +13,7 @@
#include "../core/FileSystem.hpp"
#include "../rct12/RCT12.h"
#include "../ride/RideRatings.h"
#include "../world/Park.h"
#include "Limits.h"
#include <tuple>
@@ -889,7 +890,7 @@ namespace RCT2
uint16_t ParkRating;
// Ignored in scenario
uint8_t ParkRatingHistory[32];
uint8_t ParkRatingHistory[kParkRatingHistorySize];
uint8_t GuestsInParkHistory[32];
// SC6[10]

View File

@@ -16,6 +16,7 @@ constexpr auto MAX_ENTRANCE_FEE = 999.00_GBP;
constexpr uint8_t ParkRatingHistoryUndefined = std::numeric_limits<uint8_t>::max();
constexpr uint32_t GuestsInParkHistoryUndefined = std::numeric_limits<uint32_t>::max();
constexpr uint8_t kParkRatingHistorySize = 32;
constexpr uint8_t ParkNameMaxLength = 128;
constexpr uint8_t ScenarioNameMaxLength = 128;
constexpr uint16_t ScenarioDetailsNameMaxLength = 256;