mapchooser: Clear map history on limit change (#1197)

This commit fixes a bug where if the value of `sm_mapvote_exclude` is reduced, the change may not take effect right away.
This commit is contained in:
stickz
2020-07-08 18:36:50 -07:00
committed by GitHub
parent f27dc2f4f4
commit 287628bfee
+1 -1
View File
@@ -260,7 +260,7 @@ public void OnMapEnd()
RemoveStringFromArray(g_OldMapList, map); RemoveStringFromArray(g_OldMapList, map);
g_OldMapList.PushString(map); g_OldMapList.PushString(map);
if (g_OldMapList.Length > g_Cvar_ExcludeMaps.IntValue) while (g_OldMapList.Length > g_Cvar_ExcludeMaps.IntValue)
{ {
g_OldMapList.Erase(0); g_OldMapList.Erase(0);
} }