]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - server.h
fixed bug with engine sounds (for TE_ effects) and local sounds (menu, etc) being...
[xonotic/darkplaces.git] / server.h
index 15f519325d181c8320e8a29cd9ab5e52664121ca..231702c04740d1e8c249e6184e2ec7394276b10b 100644 (file)
--- a/server.h
+++ b/server.h
@@ -117,6 +117,12 @@ typedef struct client_s
        // remove this client immediately
        qboolean deadsocket;
 
+       // requested rate in bytes per second
+       int rate;
+
+       // realtime this client connected
+       double connecttime;
+
        // reliable messages must be sent periodically
        double last_message;
 
@@ -271,8 +277,6 @@ extern client_t *host_client;
 
 extern jmp_buf host_abortserver;
 
-extern edict_t *sv_player;
-
 //===========================================================
 
 void SV_Init (void);
@@ -281,6 +285,7 @@ void SV_StartParticle (vec3_t org, vec3_t dir, int color, int count);
 void SV_StartEffect (vec3_t org, int modelindex, int startframe, int framecount, int framerate);
 void SV_StartSound (edict_t *entity, int channel, char *sample, int volume, float attenuation);
 
+void SV_ConnectClient (int clientnum, netconn_t *netconnection);
 void SV_DropClient (qboolean crash);
 
 void SV_SendClientMessages (void);