MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / LoadMission

Function LoadMission

engine/Poseidon/UI/OptionsUI.cpp:1545–1557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1543 const Magazine* magazine = veh->GetMagazineCargo(i);
1544 if (!magazine)
1545 {
1546 continue;
1547 }
1548 RString name = magazine->_type->GetName();
1549 mh.AddMagazines(name, 1);
1550 }
1551
1552 veh->ClearWeaponCargo();
1553 veh->ClearMagazineCargo();
1554
1555 return GameValue();
1556}
1557
1558GameValue PoolClearWeapons(const GameState* state)
1559{
1560 int i = GetGCampaignHistory().battles.Size() - 1;

Callers 1

AddMissionFunction · 0.70

Calls 3

LoadBinMethod · 0.45
LoadMethod · 0.45
SerializeMethod · 0.45

Tested by

no test coverage detected