- split game dependent parts out of menudef.cpp.

This commit is contained in:
Christoph Oelckers 2020-06-14 00:27:32 +02:00
commit 712d80006a
23 changed files with 790 additions and 757 deletions

View file

@ -460,3 +460,10 @@ const char *gameinfo_t::GetFinalePage(unsigned int num) const
else if (num < 1 || num > finalePages.Size()) return finalePages[0].GetChars();
else return finalePages[num-1].GetChars();
}
bool CheckGame(const char* string, bool chexisdoom)
{
int test = gameinfo.gametype;
if (test == GAME_Chex && chexisdoom) test = GAME_Doom;
return !stricmp(string, GameNames[test]);
}