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

Function EmptyDeadIdentities

engine/Poseidon/UI/OptionsUI.cpp:1239–1246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1237 {
1238 Ref<MagazineType> type = MagazineTypes.New(mh->magazines[i].name);
1239 if (!type)
1240 {
1241 continue;
1242 }
1243 int count = mh->magazines[i].count;
1244 for (int j = 0; j < count; j++)
1245 {
1246 Ref<Magazine> magazine = new Magazine(type);
1247 magazine->_ammo = type->_maxAmmo;
1248 magazine->_reloadMagazine = 0;
1249 magazine->_reload = 0;

Callers 1

AICenterImpl.cppFile · 0.85

Calls 2

CurrentMissionMethod · 0.80
ClearMethod · 0.45

Tested by

no test coverage detected