]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - server.h
patch from div0 that enables printf format warnings in gcc
[xonotic/darkplaces.git] / server.h
index df8a043b6d8a5b92c67aad7796c5797f914e6dd8..41947092940a0e0a8804978cc23c83468f0c58df 100644 (file)
--- a/server.h
+++ b/server.h
@@ -68,6 +68,10 @@ typedef struct server_s
        int lastcheck;
        double lastchecktime;
 
+       // crc of clientside progs at time of level start
+       int csqc_progcrc; // -1 = no progs
+       char csqc_progname[MAX_QPATH]; // copied from csqc_progname at level start
+
        // map name
        char name[64];
        // maps/<name>.bsp, for model_precache[0]
@@ -332,9 +336,9 @@ void SV_AddUpdates (void);
 void SV_ClientThink (void);
 
 void SV_ClientPrint(const char *msg);
-void SV_ClientPrintf(const char *fmt, ...);
+void SV_ClientPrintf(const char *fmt, ...) DP_FUNC_PRINTF(1);
 void SV_BroadcastPrint(const char *msg);
-void SV_BroadcastPrintf(const char *fmt, ...);
+void SV_BroadcastPrintf(const char *fmt, ...) DP_FUNC_PRINTF(1);
 
 void SV_Physics (void);
 void SV_Physics_ClientEntity (prvm_edict_t *ent);