]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.h
Added -did2 mode ( Defeat In Detail 2 )
[xonotic/darkplaces.git] / common.h
index 599495c68848bc6572694f6ce7e6fbb0a7f38494..41892a6c4fa99b1b2e8ee085163432178bedad7f 100644 (file)
--- a/common.h
+++ b/common.h
@@ -33,13 +33,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 # define MACOSX
 #endif
 
-// Create our own define for Solaris
-#if defined(__sun__) && defined(__svr4__)
-# define SUNOS
-#endif
-
 #ifdef SUNOS
-# define FNDELAY O_NDELAY      // FNDELAY's equivalent on SunOS is O_NDELAY
+#include <sys/file.h>          // Needed for FNDELAY
 # define model_t dp_model_t // Workaround conflict with /usr/include/sys/model.h
 #endif
 
@@ -62,7 +57,7 @@ void SZ_HexDumpToConsole(const sizebuf_t *buf);
 
 void Com_HexDumpToConsole(const qbyte *data, int size);
 
-unsigned short CRC_Block(const qbyte *data, int size);
+unsigned short CRC_Block(const qbyte *data, size_t size);
 
 
 //============================================================================
@@ -153,6 +148,7 @@ void MSG_WriteShort (sizebuf_t *sb, int c);
 void MSG_WriteLong (sizebuf_t *sb, int c);
 void MSG_WriteFloat (sizebuf_t *sb, float f);
 void MSG_WriteString (sizebuf_t *sb, const char *s);
+void MSG_WriteUnterminatedString (sizebuf_t *sb, const char *s);
 void MSG_WriteAngle8i (sizebuf_t *sb, float f);
 void MSG_WriteAngle16i (sizebuf_t *sb, float f);
 void MSG_WriteAngle32f (sizebuf_t *sb, float f);
@@ -250,6 +246,7 @@ typedef enum gamemode_e
        GAME_PRYDON,
        GAME_NETHERWORLD,
        GAME_THEHUNTED,
+       GAME_DEFEATINDETAIL2,
 }
 gamemode_t;