From 5d88529ae83ae320892b6a3bf2385e51dfea9527 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Tue, 8 Nov 2022 19:08:48 +1000 Subject: [PATCH] Show quantities in team configuration dialog --- src/game/mplayer/setup.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/game/mplayer/setup.c b/src/game/mplayer/setup.c index b76cc7ba1..19241ae92 100644 --- a/src/game/mplayer/setup.c +++ b/src/game/mplayer/setup.c @@ -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 "";