From: havoc Date: Mon, 23 Oct 2006 10:22:07 +0000 (+0000) Subject: got rid of cl.qw_spectator flag because it can be determined by cl.scores[cl.playeren... X-Git-Tag: xonotic-v0.1.0preview~3785 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=87f3dcc2cc685e223e408d3438e6f204c11ce51a;p=xonotic%2Fdarkplaces.git got rid of cl.qw_spectator flag because it can be determined by cl.scores[cl.playerentity].qw_spectator instead git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6608 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_parse.c b/cl_parse.c index bbe2483e..e921abf3 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -1017,7 +1017,8 @@ void CL_ParseServerInfo (void) // parse player number i = MSG_ReadByte(); - cl.qw_spectator = (i & 128) != 0; + // cl.qw_spectator is an unneeded flag, cl.scores[cl.playerentity].qw_spectator works better (it can be updated by the server during the game) + //cl.qw_spectator = (i & 128) != 0; cl.playerentity = cl.viewentity = (i & 127) + 1; cl.scores = (scoreboard_t *)Mem_Alloc(cls.levelmempool, cl.maxclients*sizeof(*cl.scores)); diff --git a/client.h b/client.h index e7bf8e08..e4494391 100644 --- a/client.h +++ b/client.h @@ -878,8 +878,9 @@ typedef struct client_state_s // updated from serverinfo int qw_teamplay; - // indicates whether the player is spectating - qboolean qw_spectator; + // unused: indicates whether the player is spectating + // use cl.scores[cl.playerentity].qw_spectator instead + //qboolean qw_spectator; // movement parameters for client prediction float qw_movevars_gravity;