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

Method Briefing_Show

Source/Fodder.cpp:18988–19038  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18986}
18987
18988int16 cFodder::Briefing_Show() {
18989
18990 if (mParams->mSkipBriefing)
18991 return 1;
18992
18993 if (mVersionCurrent->isDemo() && mVersionDefault->isDemo())
18994 return 1;
18995
18996 // Show the Briefing screen for Retail and Custom
18997 if (mVersionCurrent->hasBriefingScreen() || mCustom_Mode != eCustomMode_None || mGame_Data.mCampaign.isRandom()) {
18998
18999 Window_UpdateScreenSize();
19000
19001 // Show the pre ready Briefing Screen
19002 Briefing_Show_PreReady();
19003
19004 Map_Load();
19005 Map_Load_Sprites();
19006
19007 // Prepare Squads
19008 Phase_Soldiers_Count();
19009 mGame_Data.Soldier_Sort();
19010 Phase_Soldiers_Prepare(false);
19011 Phase_Soldiers_AttachToSprites();
19012
19013 mPhase_Aborted = false;
19014
19015 // Needs to split into cycle function
19016 Briefing_Show_Ready();
19017
19018 // Aborted?
19019 if (mBriefing_Aborted == -1) {
19020
19021 if (mGame_Data.mCampaign.isRandom())
19022 return -1;// Return to version select
19023
19024 GameData_Restore();
19025
19026 mRecruit_Mission_Restarting = true;
19027 mGame_Data.mMission_Recruitment = -1;
19028 mPhase_Aborted = true;
19029
19030 if (!mStartParams->mDisableSound)
19031 Music_Play(0);
19032
19033 return 0;
19034 }
19035 }
19036
19037 return 1;
19038}
19039
19040int16 cFodder::Mission_Loop() {
19041

Callers

nothing calls this directly

Calls 4

isDemoMethod · 0.80
hasBriefingScreenMethod · 0.80
Soldier_SortMethod · 0.80
isRandomMethod · 0.45

Tested by

no test coverage detected