Bazaar developer reference

CvPreGame::setRandomMapScript(bool)

Defined in
CvPreGame.cpp, line 2910
Hook name
CivHooks::CvPreGame_setRandomMapScript

Hooks

static bool BeforeCvPreGame_setRandomMapScript(bool isRandomMapScript);static void AfterCvPreGame_setRandomMapScript(bool isRandomMapScript);static void ReplaceCvPreGame_setRandomMapScript(void (*original)(bool), bool isRandomMapScript);CivRegisterBefore<CivHooks::CvPreGame_setRandomMapScript>(host, &BeforeCvPreGame_setRandomMapScript);CivRegisterAfter<CivHooks::CvPreGame_setRandomMapScript>(host, &AfterCvPreGame_setRandomMapScript);CivRegisterReplace<CivHooks::CvPreGame_setRandomMapScript>(host, &ReplaceCvPreGame_setRandomMapScript);

Code

2910void setRandomMapScript(bool isRandomMapScript)2911{2912	if(s_randomMapScript != isRandomMapScript)2913	{2914		s_randomMapScript = isRandomMapScript;2915		ResetMapOptions();2916	}2917}

Calls

Called by