1
0
Fork 0

Fix im GenerationProcessor

stein neben wand ging nicht gut
This commit is contained in:
Saibotk 2018-04-26 00:56:14 +02:00
parent e7f360d284
commit 9a3032a61a

View file

@ -84,16 +84,16 @@ public class GenerationProcessor {
switch ( type ) { switch ( type ) {
case ExtendedTileType.BorderSingle: case ExtendedTileType.BorderSingle:
Vector2Int toCheck = v + new Vector2Int(0, -1); 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; return 0;
toCheck = v + new Vector2Int(-1, 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; return 270;
toCheck = v + new Vector2Int(0, 1); 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; return 180;
toCheck = v + new Vector2Int(1, 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 90; return 90;
break; break;
case ExtendedTileType.BorderInner: case ExtendedTileType.BorderInner: