Use dynamic allocation for MP rankings

This commit is contained in:
Ryan Dwyer
2022-11-08 18:42:17 +10:00
parent e3ba31df36
commit 8ca951edc6
8 changed files with 19 additions and 29 deletions
+1
View File
@@ -275,6 +275,7 @@ extern struct scenariodata g_ScenarioData;
extern u32 var800ac4cc;
extern s32 g_MpNumChrs;
extern struct mpchr *g_MpChrs;
extern struct ranking *g_MpRankings;
extern struct mpbotconfig g_BotConfigsArray[MAX_BOTS];
extern u8 g_MpSimulantDifficultiesPerNumPlayers[8][4];
extern struct mpplayerconfig g_PlayerConfigsArray[6];
+1
View File
@@ -33,6 +33,7 @@
#define IS4MB() (g_Is4Mb == true)
#define IS8MB() (g_Is4Mb != true)
#define LINEHEIGHT (VERSION == VERSION_JPN_FINAL ? 14 : 11)
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIXCOLOUR(dialog, property) dialog->transitionfrac < 0.0f ? g_MenuColourPalettes[dialog->type].property : colourBlend(g_MenuColourPalettes[dialog->type2].property, g_MenuColourPalettes[dialog->type].property, dialog->colourweight)
#define MPCHR(index) &g_MpChrs[index]
#define MPCHRCONFIG(index) ((index) < 4 ? &g_PlayerConfigsArray[index].base : &g_BotConfigsArray[index - 4].base)