mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-08-04 00:49:17 -04:00
Use dynamic allocation for MP rankings
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user