| 1595 | GetGCampaignHistory().AddMission(campaign, battle, mission, displayName); |
| 1596 | RString filename = GetTmpSaveDirectory() + campaign + RString(".sqc"); |
| 1597 | GetGCampaignHistory().campaignName = campaign; |
| 1598 | SaveMission(filename); |
| 1599 | */ |
| 1600 | RString filename = GetTmpSaveDirectory() + campaign + RString(".sqc"); |
| 1601 | |
| 1602 | // Transfer weapons pool to next mission |
| 1603 | WeaponsInfo pool; |
| 1604 | CampaignLoadWeaponPool(pool); |
| 1605 | LoadMission(filename); |
| 1606 | GetGCampaignHistory().AddMission(campaign, battle, mission, displayName); |
| 1607 | GetGCampaignHistory().campaignName = campaign; |
| 1608 | CampaignSaveWeaponPool(pool); |
| 1609 | SaveMission(filename); |
| 1610 | } |
| 1611 | |
| 1612 | // Implementation |
| 1613 | // void SaveHeader(); |
| 1614 | |
| 1615 | // Implementation |
| 1616 | |
| 1617 | // Implementation |
| 1618 | |
| 1619 | void StartMission(Display* disp, bool newBattle) |
| 1620 | { |
| 1621 | const ParamEntry& battleCls = ExtParsCampaign >> "Campaign" >> CurrentBattle; |
| 1622 | CurrentTemplate.Clear(); |
| 1623 | ApplyCurrentMissionViewDistance(); |
| 1624 | |
| 1625 | disp->ForceExit(-1); |
| 1626 | if (newBattle) |
| 1627 | { |
| 1628 | RString intro = battleCls >> "cutscene"; |
| 1629 | disp->CreateChild(new DisplayCampaignIntro(disp, intro)); |
| 1630 | } |
| 1631 | else |
| 1632 | { |
| 1633 | const ParamEntry& missionCls = battleCls >> CurrentMission; |
no test coverage detected