Fix of wrong "alive" status in scoreboard.

This commit fixes the issue: https://github.com/assaultcube/AC/issues/21
Player in spectate mode isn't dead, so when he switches from spectate to active mode, he is still non-dead.
Therefore d->state=="CS_DEAD" doesn't work in such cases.
This commit removes also some aimless line.
This commit is contained in:
aurhat
2014-04-05 13:52:41 +02:00
parent f5815f4277
commit 5b94bab21f
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -206,8 +206,8 @@ void renderscore(playerent *d)
const char *status = "";
string lagping;
static color localplayerc(0.2f, 0.2f, 0.2f, 0.2f);
if(d->clientrole==CR_ADMIN) status = d->state==CS_DEAD ? "\f7" : "\f3";
else if(d->state==CS_DEAD) status = "\f4";
if(d->clientrole==CR_ADMIN) status = d->state!=CS_ALIVE ? "\f7" : "\f3";
else if(d->state!=CS_ALIVE) status = "\f4";
if (team_isspect(d->team)) copystring(lagping, "SPECT");
else if (d->state==CS_LAGGED || (d->ping > 999 && d->plag > 99)) copystring(lagping, "LAG");
else