CvPreGame::isPitBoss()
- Defined in
- CvPreGame.cpp, line 1177
- Hook name
CivHooks::CvPreGame_isPitBoss
Hooks
static bool BeforeCvPreGame_isPitBoss(bool& result);static void AfterCvPreGame_isPitBoss(bool& result);static bool ReplaceCvPreGame_isPitBoss(bool (*original)());CivRegisterBefore<CivHooks::CvPreGame_isPitBoss>(host, &BeforeCvPreGame_isPitBoss);CivRegisterAfter<CivHooks::CvPreGame_isPitBoss>(host, &AfterCvPreGame_isPitBoss);CivRegisterReplace<CivHooks::CvPreGame_isPitBoss>(host, &ReplaceCvPreGame_isPitBoss);
Code
1177bool isPitBoss()1178{1179 int iValue;1180 if(GetGameOption(GAMEOPTION_PITBOSS, iValue))1181 return iValue != 0;1182 return false;1183}