mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 18:38:26 +00:00
add map count to tier display string
This commit is contained in:
parent
83a572ce96
commit
7375900b83
@ -1529,10 +1529,12 @@ void CreateEnhancedMenu()
|
||||
|
||||
for(int i = GetConVarInt(g_cvMinTier); i <= GetConVarInt(g_cvMaxTier); ++i)
|
||||
{
|
||||
if (GetMenuItemCount(g_aTierMenus[i]) > 0)
|
||||
int count = GetMenuItemCount(g_aTierMenus[i]);
|
||||
|
||||
if (count > 0)
|
||||
{
|
||||
char tierDisplay[32];
|
||||
FormatEx(tierDisplay, sizeof(tierDisplay), "Tier %i", i);
|
||||
FormatEx(tierDisplay, sizeof(tierDisplay), "Tier %i (%d)", i, count);
|
||||
|
||||
char tierString[16];
|
||||
IntToString(i, tierString, sizeof(tierString));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user