Bazaar developer reference

CvTeam::PopIgnoreWarning(TeamTypes)

Defined in
CvTeam.cpp, line 7330
Class
CvTeam
Hook name
CivHooks::CvTeam_PopIgnoreWarning

Hooks

static bool BeforeCvTeam_PopIgnoreWarning(CvTeam* self, TeamTypes eTeam);static void AfterCvTeam_PopIgnoreWarning(CvTeam* self, TeamTypes eTeam);static void ReplaceCvTeam_PopIgnoreWarning(void (*original)(CvTeam*, TeamTypes), CvTeam* self, TeamTypes eTeam);CivRegisterBefore<CivHooks::CvTeam_PopIgnoreWarning>(host, &BeforeCvTeam_PopIgnoreWarning);CivRegisterAfter<CivHooks::CvTeam_PopIgnoreWarning>(host, &AfterCvTeam_PopIgnoreWarning);CivRegisterReplace<CivHooks::CvTeam_PopIgnoreWarning>(host, &ReplaceCvTeam_PopIgnoreWarning);

Code

7330void CvTeam::PopIgnoreWarning (TeamTypes eTeam)7331{7332	CvAssertMsg(eTeam != NO_TEAM, "PopIgnoreWarning got NO_TEAM passed to it");7333	if (eTeam == NO_TEAM)7334	{7335		return;7336	}73377338	CvAssertMsg(m_aiIgnoreWarningCount[eTeam] > 0, "Trying to pop when there's nothing to be popped");7339	if (m_aiIgnoreWarningCount[eTeam] > 0)7340	{7341		m_aiIgnoreWarningCount[eTeam] -= 1;7342	}7343}

Calls