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

Method Mission_Set_Initial_Weapon

Source/Fodder.cpp:9771–9793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9769}
9770
9771void cFodder::Mission_Set_Initial_Weapon() {
9772
9773 // segra: I don't believe this condition can ever occur
9774 if (mSquad_CurrentWeapon[mGUI_Loop_Squad_Current] == eWeapon_Grenade) {
9775
9776 if (mSquad_Grenades[mGUI_Loop_Squad_Current])
9777 return;
9778 if (!mSquad_Rockets[mGUI_Loop_Squad_Current])
9779 return;
9780
9781 mSquad_CurrentWeapon[mGUI_Loop_Squad_Current] = eWeapon_Rocket;
9782 return;
9783 }
9784
9785 //loc_2EFF1
9786 if (mSquad_Rockets[mGUI_Loop_Squad_Current])
9787 return;
9788
9789 if (!mSquad_Grenades[mGUI_Loop_Squad_Current])
9790 return;
9791
9792 mSquad_CurrentWeapon[mGUI_Loop_Squad_Current] = eWeapon_Grenade;
9793}
9794
9795void cFodder::Service_Show() {
9796 if (mParams->mSkipService)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected