Skip to content
Permalink
Browse files

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

  • Loading branch information...
nosoop authored and asherkin committed Oct 7, 2019
1 parent 8a4295d commit 024ae2b9edeffad0962d8f31d446ab92eb45c96f
Showing with 3 additions and 1 deletion.
  1. +3 −1 plugins/basecommands/map.sp
@@ -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;

0 comments on commit 024ae2b

Please sign in to comment.
You can’t perform that action at this time.