| 1543 | { |
| 1544 | return (float)mh.magazines[j].count; |
| 1545 | } |
| 1546 | } |
| 1547 | return 0.0f; |
| 1548 | } |
| 1549 | |
| 1550 | LSError SaveMission(const char* filename) |
| 1551 | { |
| 1552 | // MissionHistory *mh = GetGCampaignHistory().CurrentMission(); |
| 1553 | |
| 1554 | ParamArchiveSave ar(CampaignVersion); |
| 1555 | PARAM_CHECK(ar.Serialize("Campaign", GetGCampaignHistory(), 1)) |
| 1556 | #if _ENABLE_CHEATS |
| 1557 | PARAM_CHECK(ar.Save(filename)) |
| 1558 | #else |
| 1559 | if (!ar.SaveBin(filename)) |
| 1560 | { |
no test coverage detected