From 4dd5ab7576e86775ee082bd9981b354f395ae23c Mon Sep 17 00:00:00 2001 From: steph Date: Sun, 14 Mar 2021 05:02:42 -0400 Subject: [PATCH] Prevent duplicate map changes in randomcycle.sp (#1428) --- plugins/randomcycle.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/randomcycle.sp b/plugins/randomcycle.sp index 1be9ddee4..74b7954ce 100644 --- a/plugins/randomcycle.sp +++ b/plugins/randomcycle.sp @@ -4,7 +4,7 @@ * SourceMod Random Map Cycle Plugin * Randomly picks a map from the mapcycle. * - * SourceMod (C)2004-2014 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2021 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under @@ -76,7 +76,7 @@ public void OnConfigsExecuted() } } - CreateTimer(5.0, Timer_RandomizeNextmap); // Small delay to give Nextmap time to complete OnMapStart() + CreateTimer(5.0, Timer_RandomizeNextmap, _, TIMER_FLAG_NO_MAPCHANGE); // Small delay to give Nextmap time to complete OnMapStart() } public Action Timer_RandomizeNextmap(Handle timer)