]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.h
improved plane distance epsilon checking and improved precision when converting brush...
[xonotic/darkplaces.git] / common.h
index b1cba03c64759c76606eb78be91c893458d2f3f6..cfff75b3400bdfd98a5728d3823be24cf4d89103 100644 (file)
--- a/common.h
+++ b/common.h
@@ -61,6 +61,12 @@ void Com_HexDumpToConsole(const unsigned char *data, int size);
 
 unsigned short CRC_Block(const unsigned char *data, size_t size);
 
+unsigned char COM_BlockSequenceCRCByteQW(unsigned char *base, int length, int sequence);
+
+// these are actually md4sum (mdfour.c)
+unsigned Com_BlockChecksum (void *buffer, int length);
+void Com_BlockFullChecksum (void *buffer, int len, unsigned char *outbuf);
+
 
 //============================================================================
 //                                                     Endianess handling
@@ -141,6 +147,7 @@ typedef enum protocolversion_e
        PROTOCOL_QUAKEDP, // darkplaces extended quake protocol (used by TomazQuake and others), backwards compatible as long as no extended features are used
        PROTOCOL_NEHAHRAMOVIE, // Nehahra movie protocol, a big nasty hack dating back to early days of the Quake Standards Group (but only ever used by neh_gl.exe), this is potentially backwards compatible with quake protocol as long as no extended features are used (but in actuality the neh_gl.exe which wrote this protocol ALWAYS wrote the extended information)
        PROTOCOL_QUAKE, // quake (aka netquake/normalquake/nq) protocol
+       PROTOCOL_QUAKEWORLD, // quakeworld protocol
 }
 protocolversion_t;
 
@@ -239,7 +246,6 @@ typedef enum gamemode_e
        GAME_TEU,
        GAME_BATTLEMECH,
        GAME_ZYMOTIC,
-       GAME_FNIGGIUM,
        GAME_SETHERAL,
        GAME_SOM,
        GAME_TENEBRAE, // full of evil hackery
@@ -272,7 +278,7 @@ typedef struct stringlist_s
        char *text;
 } stringlist_t;
 
-int matchpattern(char *in, char *pattern, int caseinsensitive);
+int matchpattern(const char *in, const char *pattern, int caseinsensitive);
 stringlist_t *stringlistappend(stringlist_t *current, char *text);
 void stringlistfree(stringlist_t *current);
 stringlist_t *stringlistsort(stringlist_t *start);
@@ -283,6 +289,7 @@ char *SearchInfostring(const char *infostring, const char *key);
 
 void InfoString_GetValue(const char *buffer, const char *key, char *value, size_t valuelength);
 void InfoString_SetValue(char *buffer, size_t bufferlength, const char *key, const char *value);
+void InfoString_Print(char *buffer);
 
 // strlcat and strlcpy, from OpenBSD
 // Most (all?) BSDs already have them