Skip to content

Commit

Permalink
Typo (changed logic while coding 🤔)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bara committed May 10, 2018
1 parent 85cdb5e commit a62a4d5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/ttt/core/config.sp
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/ttt/core/globals.sp
Expand Up @@ -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, ... };
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/ttt/ttt.sp
Expand Up @@ -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;
Expand Down

0 comments on commit a62a4d5

Please sign in to comment.