From 9a3032a61acb879a96a103962d55ed5714cfd17d Mon Sep 17 00:00:00 2001 From: Saibotk Date: Thu, 26 Apr 2018 00:56:14 +0200 Subject: [PATCH] Fix im GenerationProcessor stein neben wand ging nicht gut --- 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 3742695..d50ef1c 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.WALL) + 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.WALL) + 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.WALL) + 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.WALL) + if(tiles.ContainsKey(toCheck) && tiles[toCheck].type != Room.TileType.WALL) return 90; break; case ExtendedTileType.BorderInner: