Merge remote-tracking branch 'upstream/master' into develop

This commit is contained in:
EvilFactory
2024-06-18 12:19:13 -03:00
263 changed files with 7788 additions and 2849 deletions
@@ -1147,19 +1147,14 @@ namespace Barotrauma
if (save)
{
GUI.SetSavingIndicatorState(true);
GameSession.Campaign?.HandleSaveAndQuit();
if (GameSession.Submarine != null && !GameSession.Submarine.Removed)
{
GameSession.SubmarineInfo = new SubmarineInfo(GameSession.Submarine);
}
if (GameSession.Campaign is CampaignMode campaign)
{
if (campaign is SinglePlayerCampaign spCampaign && Level.IsLoadedFriendlyOutpost)
{
spCampaign.UpdateStoreStock();
}
GameSession.EventManager?.RegisterEventHistory(registerFinishedOnly: true);
campaign.End();
}
GameSession.Campaign?.End();
SaveUtil.SaveGame(GameSession.SavePath);
}