entWatch4: Use team of person you're spectating.

This commit is contained in:
zaCade 2019-04-07 17:12:42 +02:00
parent 25a6dbef58
commit 36148dd1c3

View File

@ -126,7 +126,14 @@ public Action OnDisplayHUD(Handle timer)
int iTeamLine;
if ((iTeamLine = GetClientTeam(client) - 2) < 0)
continue;
{
int spectatingClient;
if ((spectatingClient = Client_GetObserverTarget(client)) < 0)
continue;
if ((iTeamLine = GetClientTeam(spectatingClient) - 2) < 0)
continue;
}
if (sTeamLines[iTeamLine][0])
{