MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / GameData_Reset

Method GameData_Reset

Source/Fodder.cpp:804–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802}
803
804void cFodder::GameData_Reset() {
805 mDebug_PhaseSkip = 0;
806 mInput_Enabled = false;
807 mPhase_InterruptTicks = 0;
808 mMission_EngineTicks = 0;
809 mRecruit_Mission_Restarting = false;
810
811 for (unsigned int x = 0; x < 9; ++x) {
812 mMission_Troops_SpritePtrs[x] = 0;
813 }
814
815 mPhase_TryingAgain = false;
816 mGame_Data.Clear();
817 mGame_Data.mGamePhase_Data.Clear();
818}
819
820void cFodder::GameData_Backup() {
821 mGame_Data_Backup = mGame_Data;

Callers

nothing calls this directly

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected