Merge pull request #345 from VoiDeD/fix-sizes-part-deux
Fix more buffer sizes for map names.
This commit is contained in:
commit
a4f5c802a9
@ -201,7 +201,7 @@ public Action:Command_Nextmap(client, args)
|
||||
if (client && !IsClientInGame(client))
|
||||
return Plugin_Handled;
|
||||
|
||||
decl String:map[64];
|
||||
decl String:map[PLATFORM_MAX_PATH];
|
||||
|
||||
GetNextMap(map, sizeof(map));
|
||||
|
||||
@ -289,7 +289,7 @@ public OnClientSayCommand_Post(client, const String:command[], const String:sArg
|
||||
}
|
||||
else if (strcmp(sArgs, "nextmap", false) == 0)
|
||||
{
|
||||
char map[32];
|
||||
char map[PLATFORM_MAX_PATH];
|
||||
GetNextMap(map, sizeof(map));
|
||||
|
||||
if (g_Cvar_TriggerShow.IntValue)
|
||||
|
@ -239,7 +239,7 @@ StartRTV()
|
||||
if (EndOfMapVoteEnabled() && HasEndOfMapVoteFinished())
|
||||
{
|
||||
/* Change right now then */
|
||||
new String:map[65];
|
||||
new String:map[PLATFORM_MAX_PATH];
|
||||
if (GetNextMap(map, sizeof(map)))
|
||||
{
|
||||
PrintToChatAll("[SM] %t", "Changing Maps", map);
|
||||
@ -281,7 +281,7 @@ public Action:Timer_ChangeMap(Handle:hTimer)
|
||||
|
||||
LogMessage("RTV changing map manually");
|
||||
|
||||
new String:map[65];
|
||||
new String:map[PLATFORM_MAX_PATH];
|
||||
if (GetNextMap(map, sizeof(map)))
|
||||
{
|
||||
ForceChangeLevel(map, "RTV after mapvote");
|
||||
|
Loading…
Reference in New Issue
Block a user