]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.h
Fix compiler warning in custom stat clearing
[xonotic/darkplaces.git] / common.h
index aa0491a2b1eb3e6873c64895229bbbe8373bde05..a490ede2da9defb52d2b2cfde3b1dd6f74c4a771 100644 (file)
--- a/common.h
+++ b/common.h
@@ -235,7 +235,7 @@ extern int dpsnprintf (char *buffer, size_t buffersize, const char *format, ...)
 extern int dpvsnprintf (char *buffer, size_t buffersize, const char *format, va_list args);
 
 // A bunch of functions are forbidden for security reasons (and also to please MSVS 2005, for some of them)
-// LordHavoc: added #undef lines here to avoid warnings in Linux
+// LadyHavoc: added #undef lines here to avoid warnings in Linux
 #undef strcat
 #define strcat DO_NOT_USE_STRCAT__USE_STRLCAT_OR_MEMCPY
 #undef strncat
@@ -293,6 +293,7 @@ typedef enum gamemode_e
        GAME_STEELSTORM, // added by motorsep
        GAME_STEELSTORM2, // added by motorsep
        GAME_SSAMMO, // added by motorsep
+       GAME_STEELSTORMREVENANTS, // added by motorsep 07/19/2015
        GAME_TOMESOFMEPHISTOPHELES, // added by motorsep
        GAME_STRAPBOMB, // added by motorsep for Urre
        GAME_MOONHELM,
@@ -383,5 +384,7 @@ char **XPM_DecodeString(const char *in);
 
 size_t base64_encode(unsigned char *buf, size_t buflen, size_t outbuflen);
 
+#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
+
 #endif