# HG changeset patch # User Alys Brooks # Date 2021-08-01 09:36:52 # Node ID 1bf418f0d23064773ef1277bb9e4871064db44db # Parent 7f33e7f592742347353ca9a0ef2e02b06d234f44 Clean up warnings. diff --git a/isometric-park-fna/Engines/Spawners/GameSpawner.cs b/isometric-park-fna/Engines/Spawners/GameSpawner.cs --- a/isometric-park-fna/Engines/Spawners/GameSpawner.cs +++ b/isometric-park-fna/Engines/Spawners/GameSpawner.cs @@ -106,22 +106,21 @@ #endregion #region dialog - this.game.enqueueDialog(DialogTrees.flatten(DialogTrees.testTree, this.grammar)); + this.game.enqueueDialog(DialogTrees.flatten(DialogTrees.testTree, this.grammar)); #endregion - this.simulation.Subsidy = message.Difficulty switch { - DifficultyLevel.Hard => 0M, - DifficultyLevel.Medium => 750M, - DifficultyLevel.Easy => 1000M, - }; + this.simulation.Subsidy = message.Difficulty switch { + DifficultyLevel.Hard => 0M, + DifficultyLevel.Medium => 750M, + DifficultyLevel.Easy => 1000M, + _ => 1000M}; - this.simulation.SubsidyDelta = message.Difficulty switch { - DifficultyLevel.Hard => 0M, - DifficultyLevel.Medium => -10M, - DifficultyLevel.Easy => 0M, - }; - + this.simulation.SubsidyDelta = message.Difficulty switch { + DifficultyLevel.Hard => 0M, + DifficultyLevel.Medium => -10M, + DifficultyLevel.Easy => 0M, + _ => 1000M}; + Logging.Success("Spawned new game."); - } } } diff --git a/isometric-park-fna/FNAGame.cs b/isometric-park-fna/FNAGame.cs --- a/isometric-park-fna/FNAGame.cs +++ b/isometric-park-fna/FNAGame.cs @@ -310,6 +310,7 @@ } catch (FileNotFoundException e) { + Logging.Error(String.Format("Error loading file: {0}", e.ToString())); } World = WorldBuilder.Build(); diff --git a/isometric-park-fna/UI/ContractWindow.cs b/isometric-park-fna/UI/ContractWindow.cs --- a/isometric-park-fna/UI/ContractWindow.cs +++ b/isometric-park-fna/UI/ContractWindow.cs @@ -22,8 +22,6 @@ private static ImageMap map; private static IntPtr _imGuiTexture; - private static bool show = false; - private static Dictionary hadFocus = new Dictionary(); public static void LoadContent(ImGuiRenderer _imGuiRenderer, ImageMap map) diff --git a/isometric-park-fna/Utils/Extensions.cs b/isometric-park-fna/Utils/Extensions.cs --- a/isometric-park-fna/Utils/Extensions.cs +++ b/isometric-park-fna/Utils/Extensions.cs @@ -17,9 +17,7 @@ source[i] = tmp; } - return source; - } } } diff --git a/isometric-park-fna/Utils/Node.cs b/isometric-park-fna/Utils/Node.cs --- a/isometric-park-fna/Utils/Node.cs +++ b/isometric-park-fna/Utils/Node.cs @@ -7,11 +7,6 @@ public T data; - - public Node() - { - } - public Node(T data) { this.data = data; diff --git a/isometric-park-fna/isometric-park-fna.csproj b/isometric-park-fna/isometric-park-fna.csproj --- a/isometric-park-fna/isometric-park-fna.csproj +++ b/isometric-park-fna/isometric-park-fna.csproj @@ -56,7 +56,6 @@ -