Skip to content

Commit f46e162

Browse files
committed
effects: fix changing mapm_freeze_in_vote on the fly
1 parent 27d3e9d commit f46e162

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

cstrike/addons/amxmodx/scripting/map_manager_effects.sma

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <map_manager>
55

66
#define PLUGIN "Map Manager: Effects"
7-
#define VERSION "0.1.2"
7+
#define VERSION "0.1.3"
88
#define AUTHOR "Mistrick"
99

1010
#pragma semicolon 1
@@ -62,12 +62,10 @@ public plugin_precache()
6262
}
6363
public plugin_cfg()
6464
{
65-
if(get_num(FREEZE_IN_VOTE)) {
66-
g_pCvars[FREEZETIME] = get_cvar_pointer("mp_freezetime");
67-
g_pCvars[VOTE_IN_NEW_ROUND] = get_cvar_pointer("mapm_vote_in_new_round");
68-
g_pCvars[PREPARE_TIME] = get_cvar_pointer("mapm_prepare_time");
69-
g_pCvars[VOTE_TIME] = get_cvar_pointer("mapm_vote_time");
70-
}
65+
g_pCvars[FREEZETIME] = get_cvar_pointer("mp_freezetime");
66+
g_pCvars[VOTE_IN_NEW_ROUND] = get_cvar_pointer("mapm_vote_in_new_round");
67+
g_pCvars[PREPARE_TIME] = get_cvar_pointer("mapm_prepare_time");
68+
g_pCvars[VOTE_TIME] = get_cvar_pointer("mapm_vote_time");
7169
}
7270
public plugin_end()
7371
{

0 commit comments

Comments
 (0)