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

Method btnCancelClick

src/Menu/NewBattleState.cpp:547–552  ·  view source on GitHub ↗

* Returns to the previous screen. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

545 * @param action Pointer to an action.
546 */
547void NewBattleState::btnCancelClick(Action *)
548{
549 save();
550 _game->setSavedGame(0);
551 _game->popState();
552}
553
554/**
555 * Randomize the state

Callers

nothing calls this directly

Calls 3

saveFunction · 0.85
setSavedGameMethod · 0.80
popStateMethod · 0.45

Tested by

no test coverage detected