void COM_InitGameType (void)
{
- char name[128];
+ char name[MAX_OSPATH];
COM_StripExtension(com_argv[0], name);
COM_ToLowerString(name, name);
if (strstr(name, "transfusion"))
gamemode = GAME_TRANSFUSION;
- else if (strstr(name, "zymotic"))
- gamemode = GAME_ZYMOTIC;
- else if (strstr(name, "fiendarena"))
- gamemode = GAME_FIENDARENA;
else if (strstr(name, "nehahra"))
gamemode = GAME_NEHAHRA;
else if (strstr(name, "hipnotic"))
if (COM_CheckParm ("-transfusion"))
gamemode = GAME_TRANSFUSION;
- else if (COM_CheckParm ("-zymotic"))
- gamemode = GAME_ZYMOTIC;
- else if (COM_CheckParm ("-fiendarena"))
- gamemode = GAME_FIENDARENA;
else if (COM_CheckParm ("-nehahra"))
gamemode = GAME_NEHAHRA;
else if (COM_CheckParm ("-hipnotic"))
switch(gamemode)
{
case GAME_NORMAL:
- if (registered.integer)
- gamename = "DarkPlaces-Quake";
- else
- gamename = "DarkPlaces-SharewareQuake";
+ gamename = "DarkPlaces-Quake";
gamedirname = "";
break;
case GAME_HIPNOTIC:
gamename = "DarkPlaces-Nehahra";
gamedirname = "nehahra";
break;
- case GAME_FIENDARENA:
- gamename = "FiendArena";
- gamedirname = "fiendarena";
- break;
- case GAME_ZYMOTIC:
- gamename = "Zymotic";
- gamedirname = "zymotic";
- break;
case GAME_TRANSFUSION:
gamename = "Transfusion";
gamedirname = "transfusion";
{GAME_HIPNOTIC, &hipnoticgame, &hipnoticgame},
{GAME_ROGUE, &roguegame, &roguegame},
{GAME_NEHAHRA, &nehahragame, &nehahragame},
- {GAME_FIENDARENA, &sharewarequakegame, ®isteredquakegame},
- {GAME_ZYMOTIC, &sharewarequakegame, ®isteredquakegame},
{GAME_TRANSFUSION, &transfusiongame, &transfusiongame},
{-1, &sharewarequakegame, ®isteredquakegame} // final fallback
};