Bazaar developer reference

getPopulationPower(int)

Defined in
CvGameCoreUtils.cpp, line 454
Hook name
CivHooks::getPopulationPower

Hooks

static bool BeforegetPopulationPower(int iPopulation, int& result);static void AftergetPopulationPower(int iPopulation, int& result);static int ReplacegetPopulationPower(int (*original)(int), int iPopulation);CivRegisterBefore<CivHooks::getPopulationPower>(host, &BeforegetPopulationPower);CivRegisterAfter<CivHooks::getPopulationPower>(host, &AftergetPopulationPower);CivRegisterReplace<CivHooks::getPopulationPower>(host, &ReplacegetPopulationPower);

Code

454int getPopulationPower(int iPopulation)455{456	return (iPopulation / 2);457}