Skip to content
Permalink
Browse files

Add missing detective check

  • Loading branch information...
Bara committed Mar 3, 2019
1 parent 5c7e082 commit 3e724c51e90994c62d0851bddfbb81ef76c0773c
Showing with 6 additions and 1 deletion.
  1. +6 −1 addons/sourcemod/scripting/ttt/ttt.sp
@@ -1081,6 +1081,11 @@ public Action Timer_Selection(Handle hTimer)
{
for (int i = 0; i < aPlayers.Length; i++)
{
if(g_bAvoidDetective[client])
{
continue;
}

g_iRole[aPlayers.Get(i)] = TTT_TEAM_DETECTIVE;
g_iLastRole[client] = TTT_TEAM_DETECTIVE;
iDetectives++;
@@ -1095,7 +1100,7 @@ public Action Timer_Selection(Handle hTimer)
{
if (g_iRole[client] == TTT_TEAM_UNASSIGNED)
{
if (g_bAvoidDetective[client] == true)
if (g_bAvoidDetective[client])
{
g_iLastRole[client] = TTT_TEAM_INNOCENT;
g_iRole[client] = TTT_TEAM_INNOCENT;

0 comments on commit 3e724c5

Please sign in to comment.
You can’t perform that action at this time.