Fix @spec not targeting clients in unassigned team.
This commit is contained in:
parent
865fa37ed9
commit
690b3c5a28
@ -453,7 +453,7 @@ bool SDKTools::ProcessCommandTarget(cmd_target_info_t *info)
|
|||||||
IPlayerInfo *plinfo = player->GetPlayerInfo();
|
IPlayerInfo *plinfo = player->GetPlayerInfo();
|
||||||
if (plinfo == NULL)
|
if (plinfo == NULL)
|
||||||
continue;
|
continue;
|
||||||
if (plinfo->GetTeamIndex() == 1 &&
|
if ((plinfo->GetTeamIndex() == 0 || plinfo->GetTeamIndex() == 1) &&
|
||||||
playerhelpers->FilterCommandTarget(pAdmin, player, info->flags) ==
|
playerhelpers->FilterCommandTarget(pAdmin, player, info->flags) ==
|
||||||
COMMAND_TARGET_VALID)
|
COMMAND_TARGET_VALID)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user