]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - quakedef.h
fix cs_project and cs_unproject builtins, they were completely ignoring
[xonotic/darkplaces.git] / quakedef.h
index bb9bb8406dec5de8e57c58ff106c4ab46f923fe8..3ddf1c737e4c861c529fe735156b2a9ae33643b0 100644 (file)
@@ -30,8 +30,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 #if defined(__GNUC__) && (__GNUC__ > 2)
 #define DP_FUNC_PRINTF(n) __attribute__ ((format (printf, n, n+1)))
+#define DP_FUNC_PURE      __attribute__ ((pure))
 #else
 #define DP_FUNC_PRINTF(n)
+#define DP_FUNC_PURE
 #endif
 
 #include <sys/types.h>
@@ -260,6 +262,8 @@ extern char engineversion[128];
 extern qboolean noclip_anglehack;
 
 extern cvar_t developer;
+extern cvar_t developer_loadfile;
+extern cvar_t developer_loading;
 
 /* Preprocessor macros to identify platform
     DP_OS_NAME         - "friendly" name of the OS, for humans to read
@@ -322,6 +326,7 @@ void Host_Quit_f(void);
 void Host_ClientCommands(const char *fmt, ...) DP_FUNC_PRINTF(1);
 void Host_ShutdownServer(void);
 void Host_Reconnect_f(void);
+void Host_NoOperation_f(void);
 
 void Host_AbortCurrentFrame(void);
 
@@ -344,5 +349,10 @@ float noise4f(float x, float y, float z, float w);
 
 void Sys_Shared_Init(void);
 
+// Flag in size field of demos to indicate a client->server packet. Demo
+// playback will ignore this, but it may be useful to make DP sniff packets to
+// debug protocol exploits.
+#define DEMOMSG_CLIENT_TO_SERVER 0x80000000
+
 #endif