]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.h
fix serious bug in DP_SV_CLIENTCAMERA that made it break in multiplayer
[xonotic/darkplaces.git] / common.h
index 2986045f37301738a5ba4d85fccd86a980a39501..4c7165c1d6d374741f89de074c9f414831c8ed18 100644 (file)
--- a/common.h
+++ b/common.h
@@ -103,6 +103,15 @@ short BuffLittleShort (const unsigned char *buffer);
 
 /// Encode a big endian 32bit int to the given \p buffer
 void StoreBigLong (unsigned char *buffer, unsigned int i);
+
+/// Encode a big endian 16bit int to the given \p buffer
+void StoreBigShort (unsigned char *buffer, unsigned short i);
+
+/// Encode a little endian 32bit int to the given \p buffer
+void StoreLittleLong (unsigned char *buffer, unsigned int i);
+
+/// Encode a little endian 16bit int to the given \p buffer
+void StoreLittleShort (unsigned char *buffer, unsigned short i);
 //@}
 
 //============================================================================
@@ -195,6 +204,7 @@ int COM_ParseToken_Console(const char **datapointer);
 
 extern int com_argc;
 extern const char **com_argv;
+extern int com_selffd;
 
 int COM_CheckParm (const char *parm);
 void COM_Init (void);
@@ -259,9 +269,9 @@ typedef enum gamemode_e
        GAME_DARSANA,
        GAME_CONTAGIONTHEORY,
        GAME_EDU2P,
-       GAME_BLADEMASTER,
        GAME_PROPHECY,
        GAME_BLOODOMNICIDE,
+       GAME_STEELSTORM, // added by motorsep
        GAME_COUNT
 }
 gamemode_t;