Permalink
Browse files

We should allow default functions when Spec Next/Prev is disabled

  • Loading branch information...
Bara committed Oct 26, 2018
1 parent 42eb620 commit 4f640d852211ee1a26e1d37c43ddc7cdc0a4dc09
Showing with 4 additions and 4 deletions.
  1. +4 −4 addons/sourcemod/scripting/ttt/ttt_spec_menu.sp
@@ -117,7 +117,7 @@ public Action Command_SpecNext(int client, const char[] command, int argc)
{
if (!g_cEnableNextPrev.BoolValue || !TTT_IsClientValid(client) || IsPlayerAlive(client))
{
return Plugin_Handled;
return Plugin_Continue;
}
int target = GetEntPropEnt(client, Prop_Send, "m_hObserverTarget");
@@ -135,7 +135,7 @@ public Action Command_SpecPrev(int client, const char[] command, int argc)
{
if (!g_cEnableNextPrev.BoolValue || !TTT_IsClientValid(client) || IsPlayerAlive(client))
{
return Plugin_Handled;
return Plugin_Continue;
}
int target = GetEntPropEnt(client, Prop_Send, "m_hObserverTarget");
@@ -151,9 +151,9 @@ public Action Command_SpecPrev(int client, const char[] command, int argc)
public Action Command_SpecPlayer(int client, const char[] command, int argc)
{
if (!TTT_IsClientValid(client) || IsPlayerAlive(client))
if (!g_cEnableNextPrev.BoolValue || !TTT_IsClientValid(client) || IsPlayerAlive(client))
{
return Plugin_Handled;
return Plugin_Continue;
}
char arg[128];

0 comments on commit 4f640d8

Please sign in to comment.