Use map display name for admin map chooser menu (#1097)

This commit is contained in:
nosoop
2019-10-07 19:15:36 +01:00
committed by Asher Baker
parent 8a4295d699
commit 024ae2b9ed
+3 -1
View File
@@ -159,8 +159,10 @@ int LoadMapList(Menu menu)
for (int i = 0; i < map_count; i++)
{
char displayName[PLATFORM_MAX_PATH];
GetArrayString(g_map_array, i, map_name, sizeof(map_name));
menu.AddItem(map_name, map_name);
GetMapDisplayName(map_name, displayName, sizeof(displayName));
menu.AddItem(map_name, displayName);
}
return map_count;