- split game dependent parts out of menudef.cpp.
This commit is contained in:
parent
475f740058
commit
712d80006a
23 changed files with 790 additions and 757 deletions
|
|
@ -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]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue