Permalink
Browse files

Typo (changed logic while coding 🤔)

  • Loading branch information...
Bara committed May 10, 2018
1 parent 85cdb5e commit a62a4d5ab94488a1d50f170b9a3dada14cf77c64
@@ -131,7 +131,7 @@ void SetupConfig()
g_cLogButtons = AutoExecConfig_CreateConVar("ttt_log_pressed_buttons", "0", "Log pressed buttons?", _, true, 0.0, true, 1.0);
g_cLogButtonsSpam = AutoExecConfig_CreateConVar("ttt_log_pressed_buttons", "5", "Prevent log spamming for the same button - Time in seconds to relog a button");
g_cOpenRulesOnPunish = AutoExecConfig_CreateConVar("ttt_open_rules_on_punish", "0", "Open rules menu for a player while he will be punished?", _, true, 0.0, true, 1.0);
g_cRulesURLCloseMenu = AutoExecConfig_CreateConVar("ttt_close_rules_on_url", "1", "Close Menu when a player will be redirect to motd/popup window?", _, true, 0.0, true, 1.0);
g_cRulesURLReopenMenu = AutoExecConfig_CreateConVar("ttt_reopen_rules_on_url", "1", "Reopen rules menu when a player will be redirect to motd/popup window?", _, true, 0.0, true, 1.0);
g_cpluginTag.AddChangeHook(OnConVarChanged);
g_ckickImmunity.AddChangeHook(OnConVarChanged);
@@ -283,7 +283,7 @@ ConVar g_cSilentIdRoles = null;
ConVar g_cLogButtons = null;
ConVar g_cLogButtonsSpam = null;
ConVar g_cOpenRulesOnPunish = null;
ConVar g_cRulesURLCloseMenu = null;
ConVar g_cRulesURLReopenMenu = null;
Handle g_hRules = null;
bool g_bRules[MAXPLAYERS + 1] = { false, ... };
@@ -2261,7 +2261,7 @@ public int Menu_ShowWelcomeMenu(Menu menu, MenuAction action, int client, int pa
{
WebFix_OpenUrl(client, "TTT Rules", sValue);
if (g_cRulesURLCloseMenu.BoolValue)
if (g_cRulesURLReopenMenu.BoolValue)
{
g_bKnowRules[client] = false;
g_bReadRules[client] = true;

0 comments on commit a62a4d5

Please sign in to comment.