Fix buffer sizes used for map names (64 -> MAX_PATH).

As more games are now supporting maps nested in subfolders or in folders outside of the maps folder,
we need to account for the full path that the game uses to refer to the map for compatibility. Many other
places for fixed for this already after CS:GO added Steam Workshop support for maps.
This commit is contained in:
Nicholas Hastings
2015-06-03 22:28:58 -04:00
parent 974e18292a
commit 5139eef183
3 changed files with 16 additions and 16 deletions
+3 -3
View File
@@ -109,7 +109,7 @@ public MenuHandler_Confirm(Menu menu, MenuAction action, int param1, int param2)
}
else if (action == MenuAction_Select)
{
decl String:maps[5][64];
decl String:maps[5][PLATFORM_MAX_PATH];
new selectedmaps = GetArraySize(g_SelectedMaps);
for (new i = 0; i < selectedmaps; i++)
@@ -233,7 +233,7 @@ public Action:Command_Votemap(client, args)
decl String:text[256];
GetCmdArgString(text, sizeof(text));
decl String:maps[5][64];
decl String:maps[5][PLATFORM_MAX_PATH];
new mapCount;
new len, pos;
@@ -283,7 +283,7 @@ int LoadMapList(Menu menu)
RemoveAllMenuItems(menu);
char map_name[64];
char map_name[PLATFORM_MAX_PATH];
new map_count = GetArraySize(g_map_array);
for (new i = 0; i < map_count; i++)