From 700bd82dd9c23e24e38f67a21ccd3fce5b5ab520 Mon Sep 17 00:00:00 2001 From: Triceraptodactyl Date: Wed, 25 Apr 2018 01:27:47 +0200 Subject: [PATCH] Wall Fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wände neben Steinen/Türen werden jetzt korrekt angezeigt. --- Assets/Scripts/Generation/GenerationProcessor.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/Generation/GenerationProcessor.cs b/Assets/Scripts/Generation/GenerationProcessor.cs index e2806ea..3742695 100644 --- a/Assets/Scripts/Generation/GenerationProcessor.cs +++ b/Assets/Scripts/Generation/GenerationProcessor.cs @@ -84,16 +84,16 @@ public class GenerationProcessor { switch ( type ) { case ExtendedTileType.BorderSingle: Vector2Int toCheck = v + new Vector2Int(0, -1); - if(tiles.ContainsKey(toCheck) && (tiles[toCheck].type == Room.TileType.GROUND || tiles[toCheck].type == Room.TileType.GROUND)) + if(tiles.ContainsKey(toCheck) && (tiles[toCheck].type != Room.TileType.WALL) return 0; toCheck = v + new Vector2Int(-1, 0); - if(tiles.ContainsKey(toCheck) && (tiles[toCheck].type == Room.TileType.GROUND || tiles[toCheck].type == Room.TileType.GROUND)) + if(tiles.ContainsKey(toCheck) && (tiles[toCheck].type != Room.TileType.WALL) return 270; toCheck = v + new Vector2Int(0, 1); - if(tiles.ContainsKey(toCheck) && (tiles[toCheck].type == Room.TileType.GROUND || tiles[toCheck].type == Room.TileType.GROUND)) + if(tiles.ContainsKey(toCheck) && (tiles[toCheck].type != Room.TileType.WALL) return 180; toCheck = v + new Vector2Int(1, 0); - if(tiles.ContainsKey(toCheck) && (tiles[toCheck].type == Room.TileType.GROUND || tiles[toCheck].type == Room.TileType.GROUND)) + if(tiles.ContainsKey(toCheck) && (tiles[toCheck].type != Room.TileType.WALL) return 90; break; case ExtendedTileType.BorderInner: