Fixed messageboxes opened by the mp campaign setup UI not being shown until the UI is closed (e.g. shuttle & incompatible content package warnings), renamed MultiplayerCampaign -> MultiPlayerCampaign for consistency. See #315

This commit is contained in:
Joonas Rikkonen
2018-03-06 16:43:36 +02:00
parent dda8854b58
commit 10ce4bd20d
12 changed files with 275 additions and 232 deletions
@@ -134,7 +134,7 @@ namespace Barotrauma
break;
#endif
case "multiplayercampaign":
GameMode = MultiplayerCampaign.LoadNew(subElement);
GameMode = MultiPlayerCampaign.LoadNew(subElement);
break;
}
}
@@ -303,7 +303,7 @@ namespace Barotrauma
break;
#endif
case "multiplayercampaign":
MultiplayerCampaign mpCampaign = GameMode as MultiplayerCampaign;
MultiPlayerCampaign mpCampaign = GameMode as MultiPlayerCampaign;
if (mpCampaign == null)
{
DebugConsole.ThrowError("Error while loading a save file: the save file is for a multiplayer campaign but the current gamemode is "+GameMode.GetType().ToString());