(69d450d58) Initialize SteamManager before creating the GameMain instance

This commit is contained in:
Joonas Rikkonen
2019-05-06 11:34:36 +03:00
parent f72fd0bf29
commit f42a7c1ec6
13 changed files with 243 additions and 145 deletions
@@ -403,7 +403,7 @@ namespace Barotrauma
if (campaign.CheatsEnabled)
{
DebugConsole.CheatsEnabled = true;
if (GameMain.Config.UseSteam && !SteamAchievementManager.CheatsEnabled)
if (Steam.SteamManager.USE_STEAM && !SteamAchievementManager.CheatsEnabled)
{
SteamAchievementManager.CheatsEnabled = true;
new GUIMessageBox("Cheats enabled", "Cheat commands have been enabled on the campaign. You will not receive Steam Achievements until you restart the game.");