CvPreGame::popGameType()
- Defined in
- CvPreGame.cpp, line 2591
- Hook name
CivHooks::CvPreGame_popGameType
Hooks
static bool BeforeCvPreGame_popGameType();static void AfterCvPreGame_popGameType();static void ReplaceCvPreGame_popGameType(void (*original)());CivRegisterBefore<CivHooks::CvPreGame_popGameType>(host, &BeforeCvPreGame_popGameType);CivRegisterAfter<CivHooks::CvPreGame_popGameType>(host, &AfterCvPreGame_popGameType);CivRegisterReplace<CivHooks::CvPreGame_popGameType>(host, &ReplaceCvPreGame_popGameType);
Code
2591void popGameType()2592{2593 if (s_pushedGameType != GAME_TYPE_NONE) {2594 setGameType(s_pushedGameType);2595 2596 s_pushedGameType = GAME_TYPE_NONE;2597 }2598}