Part of #21421: refactor FINANCE_GRAPH_SIZE

This commit is contained in:
Claudio Tiecher 2024-03-28 17:00:14 +01:00
parent 83b8629b9c
commit ae975a8050
2 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ void FinancePayRideUpkeep()
void FinanceResetHistory()
{
auto& gameState = GetGameState();
for (int32_t i = 0; i < FINANCE_GRAPH_SIZE; i++)
for (uint8_t i = 0; i < FINANCE_GRAPH_SIZE; i++)
{
gameState.CashHistory[i] = kMoney64Undefined;
gameState.WeeklyProfitHistory[i] = kMoney64Undefined;

View File

@ -32,7 +32,7 @@ enum class ExpenditureType : int32_t
};
constexpr uint8_t kExpenditureTableMonthCount = 16;
#define FINANCE_GRAPH_SIZE 128
constexpr uint8_t FINANCE_GRAPH_SIZE = 128;
constexpr uint8_t MaxBankLoanInterestRate = 255;