MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / wasResearchPopped

Method wasResearchPopped

src/Savegame/SavedGame.cpp:1644–1647  ·  view source on GitHub ↗

* checks if an unresearched topic has previously been popped up. * @param research is the project we are checking for * @return whether or not it has been popped up. */

Source from the content-addressed store, hash-verified

1642 * @return whether or not it has been popped up.
1643 */
1644bool SavedGame::wasResearchPopped(const RuleResearch* research)
1645{
1646 return (std::find(_poppedResearch.begin(), _poppedResearch.end(), research) != _poppedResearch.end());
1647}
1648
1649/*
1650 * checks for and removes a research project from the "has been popped up" array

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected