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:
parent
f27dc2f4f4
commit
287628bfee
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user