SZ_Write (sb, s, strlen(s)+1);
}
-// used by server (always latest dpprotocol)
+// used by server (always latest PROTOCOL_DARKPLACES)
void MSG_WriteDPCoord (sizebuf_t *sb, float f)
{
if (f >= 0)
return l;
}
-// used by server (always latest dpprotocol)
+// used by server (always latest PROTOCOL_DARKPLACES)
float MSG_ReadDPCoord (void)
{
return (signed short) MSG_ReadLittleShort();
// used by client
float MSG_ReadCoord (void)
{
- if (dpprotocol == DPPROTOCOL_VERSION2 || dpprotocol == DPPROTOCOL_VERSION3 || dpprotocol == DPPROTOCOL_VERSION4)
+ if (cl.protocol == PROTOCOL_DARKPLACES2 || cl.protocol == PROTOCOL_DARKPLACES3 || cl.protocol == PROTOCOL_DARKPLACES4)
return (signed short) MSG_ReadLittleShort();
- else if (dpprotocol == DPPROTOCOL_VERSION1)
+ else if (cl.protocol == PROTOCOL_DARKPLACES1)
return MSG_ReadLittleFloat();
else
return MSG_ReadLittleShort() * (1.0f/8.0f);
gamemode = GAME_TEU;
else if (strstr(name, "battlemech"))
gamemode = GAME_BATTLEMECH;
+ else if (strstr(name, "zymotic"))
+ gamemode = GAME_ZYMOTIC;
else
gamemode = GAME_NORMAL;
gamemode = GAME_TEU;
else if (COM_CheckParm ("-battlemech"))
gamemode = GAME_BATTLEMECH;
+ else if (COM_CheckParm ("-zymotic"))
+ gamemode = GAME_ZYMOTIC;
switch(gamemode)
{
break;
case GAME_TEU:
gamename = "TheEvilUnleashed";
- gamedirname = "teu";
+ gamedirname = "baseteu";
break;
case GAME_BATTLEMECH:
gamename = "Battlemech";
- gamedirname = "battlemech";
+ gamedirname = "base";
+ break;
+ case GAME_ZYMOTIC:
+ gamename = "Zymotic";
+ gamedirname = "data";
break;
default:
Sys_Error("COM_InitGameType: unknown gamemode %i\n", gamemode);
if (c == '\0')
return NULL;
- if (c == '\\')
+ if (c == '\\' || key_ind == sizeof (crt_key) - 1)
{
crt_key[key_ind] = '\0';
break;
{
c = *infostring++;
- if (c == '\0' || c == '\\')
+ if (c == '\0' || c == '\\' || value_ind == sizeof (value) - 1)
{
value[value_ind] = '\0';
return value;