diff --git a/isometric-park-fna/Engines/GameBridgeEngine.cs b/isometric-park-fna/Engines/GameBridgeEngine.cs --- a/isometric-park-fna/Engines/GameBridgeEngine.cs +++ b/isometric-park-fna/Engines/GameBridgeEngine.cs @@ -53,9 +53,9 @@ } } + game.in_zone = false; foreach (ref readonly var entity in ReadEntities()) { - game.in_zone = false; var areaComponent = GetComponent(entity); foreach (var square in areaComponent.squares) { 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 @@ -90,7 +90,6 @@ private BudgetWindow budgetWindow; public bool showForest; public bool showNews; - public bool showContracts; //Encompass private WorldBuilder WorldBuilder = new WorldBuilder(); @@ -231,8 +230,11 @@ WorldBuilder.SendMessage(new SpawnContractMessage{squares = new[] {new Vector2(4,4), new Vector2(5,4)}, name = "Northshore Logging"}); - WorldBuilder.SendMessage(new SpawnContractMessage{squares = new[] {new Vector2(4,4), new Vector2(5,4)}, - name = "Aeres Maximalis Ltd."}); + WorldBuilder.SendMessage(new SpawnContractMessage + { + squares = new[] { new Vector2(6, 6), new Vector2(6, 7), new Vector2(6, 8) }, + name = "Aeres Maximalis Ltd." + }); World = WorldBuilder.Build(); var bakedMono = TtfFontBaker.Bake(File.OpenRead(@"Content/iosevka-term-extendedmedium.ttf"), diff --git a/isometric-park-fna/Renderers/AreaRenderer.cs b/isometric-park-fna/Renderers/AreaRenderer.cs --- a/isometric-park-fna/Renderers/AreaRenderer.cs +++ b/isometric-park-fna/Renderers/AreaRenderer.cs @@ -31,8 +31,11 @@ foreach (ref readonly var entity in ReadEntities()) { var areaComponent = GetComponent(entity); - Tile.DrawOutlinedSquares(batch, areaComponent.squares, Color.Teal); - + if (!HasComponent(entity) + || GetComponent(entity).status == ContractStatus.Accepted ) + { + Tile.DrawOutlinedSquares(batch, areaComponent.squares, Color.Teal); + } } } }