1
0
Fork 0
Wände neben Steinen/Türen werden jetzt korrekt angezeigt.
This commit is contained in:
Triceraptodactyl 2018-04-25 01:27:47 +02:00
parent 4b972353e6
commit 700bd82dd9

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.GROUND || tiles[toCheck].type == Room.TileType.GROUND)) 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.GROUND || tiles[toCheck].type == Room.TileType.GROUND)) 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.GROUND || tiles[toCheck].type == Room.TileType.GROUND)) 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.GROUND || tiles[toCheck].type == Room.TileType.GROUND)) if(tiles.ContainsKey(toCheck) && (tiles[toCheck].type != Room.TileType.WALL)
return 90; return 90;
break; break;
case ExtendedTileType.BorderInner: case ExtendedTileType.BorderInner: