1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 04:23:20 +01:00

Fix weekly profit import

This commit is contained in:
Gymnasiast
2021-05-09 20:04:04 +02:00
parent 1c5b7a7bdd
commit 8063e965b8
3 changed files with 4 additions and 4 deletions

View File

@@ -1375,7 +1375,7 @@ private:
{
gCashHistory[i] = _s4.cash_history[i];
gParkValueHistory[i] = ToMoney64(CorrectRCT1ParkValue(_s4.park_value_history[i]));
gWeeklyProfitHistory[i] = _s4.weekly_profit_history[i];
gWeeklyProfitHistory[i] = ToMoney64(_s4.weekly_profit_history[i]);
}
for (size_t i = 0; i < RCT12_EXPENDITURE_TABLE_MONTH_COUNT; i++)

View File

@@ -308,7 +308,7 @@ public:
gCurrentExpenditure = _s6.current_expenditure;
gCurrentProfit = _s6.current_profit;
gWeeklyProfitAverageDividend = _s6.weekly_profit_average_dividend;
gWeeklyProfitAverageDividend = ToMoney64(_s6.weekly_profit_average_dividend);
gWeeklyProfitAverageDivisor = _s6.weekly_profit_average_divisor;
// pad_0135833A
@@ -317,7 +317,7 @@ public:
for (size_t i = 0; i < RCT12_FINANCE_GRAPH_SIZE; i++)
{
gCashHistory[i] = _s6.balance_history[i];
gWeeklyProfitHistory[i] = _s6.weekly_profit_history[i];
gWeeklyProfitHistory[i] = ToMoney64(_s6.weekly_profit_history[i]);
gParkValueHistory[i] = ToMoney64(_s6.park_value_history[i]);
}

View File

@@ -194,7 +194,7 @@ struct rct_s6_data
// SC6[11]
money32 current_expenditure;
money32 current_profit;
uint32_t weekly_profit_average_dividend;
money32 weekly_profit_average_dividend;
uint16_t weekly_profit_average_divisor;
uint8_t pad_0135833A[2];