From 6749dae9bc587a04a4b342a1013681dc9441a262 Mon Sep 17 00:00:00 2001 From: Alexander Korshun Date: Thu, 13 Jul 2017 17:29:39 +0300 Subject: [PATCH] Optimize ActorIsPlayer --- src/acsplayer.acs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/acsplayer.acs b/src/acsplayer.acs index 540e47e..96a1f11 100644 --- a/src/acsplayer.acs +++ b/src/acsplayer.acs @@ -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)