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 21:36:50 -04:00 committed by GitHub
parent f27dc2f4f4
commit 287628bfee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -260,7 +260,7 @@ public void OnMapEnd()
RemoveStringFromArray(g_OldMapList, 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);
}