]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.c
Added DP_SV_WRITEUNTERMINATEDSTRING extension
[xonotic/darkplaces.git] / common.c
index c801866446cadb8b59f086274954e74a62e59bdc..df8bbcc9a333ee98de579b63b3523389c5a2f81d 100644 (file)
--- a/common.c
+++ b/common.c
@@ -252,6 +252,12 @@ void MSG_WriteString (sizebuf_t *sb, const char *s)
                SZ_Write (sb, s, (int)strlen(s)+1);
 }
 
+void MSG_WriteUnterminatedString (sizebuf_t *sb, const char *s)
+{
+       if (s)
+               SZ_Write (sb, s, (int)strlen(s));
+}
+
 void MSG_WriteCoord13i (sizebuf_t *sb, float f)
 {
        if (f >= 0)
@@ -964,7 +970,7 @@ static const gamemode_info_t gamemode_info [] =
 // COMMANDLINEOPTION: Game: -netherworld runs the game Netherworld: Dark Master
 { "netherworld",       "-netherworld", "Netherworld: Dark Master",     "id1",          "netherworld",  "nw",                   "darkplaces"},
 // GAME_THEHUNTED
-// COMMANDLINEOPTION: Game: -netherworld runs the game The Hunted
+// COMMANDLINEOPTION: Game: -thehunted runs the game The Hunted
 { "thehunted",         "-thehunted",   "The Hunted",                   "thdata",       NULL,                   "th",                   "thehunted"},
 };