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

Method init

src/Geoscape/ConfirmLandingState.cpp:117–123  ·  view source on GitHub ↗

* Make sure we aren't returning to base. */

Source from the content-addressed store, hash-verified

115 * Make sure we aren't returning to base.
116 */
117void ConfirmLandingState::init()
118{
119 State::init();
120 Base* b = dynamic_cast<Base*>(_craft->getDestination());
121 if (b == _craft->getBase())
122 _game->popState();
123}
124
125/**
126 * Enters the mission.

Callers

nothing calls this directly

Calls 4

initFunction · 0.85
getDestinationMethod · 0.80
getBaseMethod · 0.80
popStateMethod · 0.45

Tested by

no test coverage detected