From 4d6b9895d38e338442f2c1eb2be82cae174e8910 Mon Sep 17 00:00:00 2001 From: XeroX Date: Sat, 17 Jul 2021 12:46:22 +0200 Subject: [PATCH] Use display name for currentmap chat trigger (#1512) This increases the buffer for the map to be consistent with the other calls to GetCurrentMap. Also `currentmap` now uses the map's display name similar how `nextmap` uses it. --- plugins/basetriggers.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/basetriggers.sp b/plugins/basetriggers.sp index 6010b4d4..a9d331a4 100644 --- a/plugins/basetriggers.sp +++ b/plugins/basetriggers.sp @@ -272,9 +272,9 @@ public void OnClientSayCommand_Post(int client, const char[] command, const char } else if (strcmp(sArgs, "currentmap", false) == 0) { - char map[64]; + char map[PLATFORM_MAX_PATH]; GetCurrentMap(map, sizeof(map)); - + GetMapDisplayName(map, map, sizeof(map)); if (g_Cvar_TriggerShow.IntValue) { PrintToChatAll("[SM] %t", "Current Map", map);