Skip to content

Commit

Permalink
Optimize ActorIsPlayer
Browse files Browse the repository at this point in the history
  • Loading branch information
Korshun committed Jul 13, 2017
1 parent e7d7e46 commit 6749dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/acsplayer.acs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function int ActorPlayerNumber(int tid)

function bool ActorIsPlayer(int tid)
{
return ActorPlayerNumber(tid) >= 0;
return ClassifyActor(tid) & ACTOR_PLAYER;
}

function str PlayerName(int num)
Expand Down

0 comments on commit 6749dae

Please sign in to comment.