From 1ebb5bf9dd791fc848382f3ea1d64778b34504b4 Mon Sep 17 00:00:00 2001 From: Shorokhov Sergey Date: Tue, 30 Jan 2024 18:26:35 +0300 Subject: [PATCH] fix(ReDeathmatch): fix round mode switch condition Fixes an issue where the round mode switch condition was not working as intended in the ReDeathmatch script. The previous condition only checked if the `redm_modes_switch` variable was equal to "disable", but it should also exclude cases where `redm_modes_switch` is a non-zero value. This fix adds an additional check to exclude non-zero values of `redm_modes_switch`. --- .../addons/amxmodx/scripting/ReDeathmatch/ReDM_round_modes.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_round_modes.inc b/cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_round_modes.inc index 5ee11aa..47a01f1 100644 --- a/cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_round_modes.inc +++ b/cstrike/addons/amxmodx/scripting/ReDeathmatch/ReDM_round_modes.inc @@ -47,7 +47,7 @@ RoundModes_ReadModes() { * Handles mode voting and mode switching. */ RoundModes_RoundEnd() { - if (strcmp(redm_modes_switch, "disable") == 0) + if (strcmp(redm_modes_switch, "disable") == 0 || strtol(redm_modes_switch) == 0) return new count