]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
got rid of cl.qw_spectator flag because it can be determined by cl.scores[cl.playeren...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 23 Oct 2006 10:22:07 +0000 (10:22 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 23 Oct 2006 10:22:07 +0000 (10:22 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6608 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c
client.h

index bbe2483e76c36467a04d192427ad44dc048e98ec..e921abf39765a73fa9e0a2c3e37d649bb393abf7 100644 (file)
@@ -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));
 
index e7bf8e08f536df4cfdeeb052485cad2bb6f7fdf1..e44943917abfa0e8457b7a5248baa786ad5c512b 100644 (file)
--- 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;