Show quantities in team configuration dialog

This commit is contained in:
Ryan Dwyer 2022-11-08 19:08:48 +10:00
parent 8ca951edc6
commit 5d88529ae8
1 changed files with 9 additions and 1 deletions

View File

@ -3356,7 +3356,15 @@ char *mpMenuTextChrNameForTeamSetup(struct menuitem *item)
struct mpchrconfig *mpcfg = mpGetChrConfigBySlotNum(item->param);
if (mpcfg) {
return mpcfg->name;
if (mpcfg >= &g_BotConfigsArray[0].base && mpcfg < &g_BotConfigsArray[MAX_BOTS].base) {
// Bot
struct mpbotconfig *botcfg = (struct mpbotconfig *) mpcfg;
sprintf(g_StringPointer, "%dx %s\n", botcfg->quantity, botcfg->base.name);
return g_StringPointer;
} else {
// Player
return mpcfg->name;
}
}
return "";