Fix im GenerationProcessor
stein neben wand ging nicht gut
This commit is contained in:
parent
3dd2bfd7ae
commit
76ee7acfc9
1 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue