- qboolean active; // false if only a net client
-
- qboolean paused;
- qboolean loadgame; // handle connections specially
-
- double time;
-
- double frametime;
-
- int lastcheck; // used by PF_checkclient
- double lastchecktime;
-
- char name[64]; // map name
- char modelname[64]; // maps/<name>.bsp, for model_precache[0]
- struct model_s *worldmodel;
- char *model_precache[MAX_MODELS]; // NULL terminated
- struct model_s *models[MAX_MODELS];
- char *sound_precache[MAX_SOUNDS]; // NULL terminated
- char *lightstyles[MAX_LIGHTSTYLES];
- int num_edicts;
- int max_edicts;
- edict_t *edicts; // can NOT be array indexed, because
- // edict_t is variable sized, but can
- // be used to reference the world ent
- server_state_t state; // some actions are only valid during load
-
- sizebuf_t datagram;
- qbyte datagram_buf[MAX_DATAGRAM];
-
- sizebuf_t reliable_datagram; // copied to all clients at end of frame
- qbyte reliable_datagram_buf[MAX_DATAGRAM];
-
- sizebuf_t signon;
- qbyte signon_buf[32768]; // LordHavoc: increased signon message buffer from 8192 to 32768
+ // false if only a net client
+ qboolean active;
+
+ qboolean paused;
+ // handle connections specially
+ qboolean loadgame;
+
+ // one of the PROTOCOL_ values
+ protocolversion_t protocol;
+
+ // used for running multiple steps in one frame, etc
+ double timer;
+
+ double time;
+
+ double frametime;
+
+ // used by PF_checkclient
+ int lastcheck;
+ double lastchecktime;
+
+ // map name
+ char name[64];
+ // maps/<name>.bsp, for model_precache[0]
+ char modelname[64];
+ struct model_s *worldmodel;
+ // NULL terminated
+ // LordHavoc: precaches are now MAX_QPATH rather than a pointer
+ // updated by SV_ModelIndex
+ char model_precache[MAX_MODELS][MAX_QPATH];
+ struct model_s *models[MAX_MODELS];
+ // NULL terminated
+ // LordHavoc: precaches are now MAX_QPATH rather than a pointer
+ // updated by SV_SoundIndex
+ char sound_precache[MAX_SOUNDS][MAX_QPATH];
+ char lightstyles[MAX_LIGHTSTYLES][64];
+ // PushMove sometimes has to move entities back from a failed move
+ // (dynamically resized)
+ prvm_edict_t **moved_edicts;
+ // some actions are only valid during load
+ server_state_t state;
+
+ sizebuf_t datagram;
+ unsigned char datagram_buf[NET_MAXMESSAGE];
+
+ // copied to all clients at end of frame
+ sizebuf_t reliable_datagram;
+ unsigned char reliable_datagram_buf[NET_MAXMESSAGE];
+
+ sizebuf_t signon;
+ // LordHavoc: increased signon message buffer from 8192
+ unsigned char signon_buf[NET_MAXMESSAGE];