Rock Wall Fix
This commit is contained in:
parent
1199d14774
commit
60c6ff317b
1 changed files with 5 additions and 5 deletions
|
@ -106,7 +106,7 @@ public class GenerationProcessor {
|
||||||
}
|
}
|
||||||
|
|
||||||
private ExtendedTileType getCorrectWallType(Dictionary<Vector2Int, GenTile> tiles, Vector2Int position){
|
private ExtendedTileType getCorrectWallType(Dictionary<Vector2Int, GenTile> tiles, Vector2Int position){
|
||||||
int groundNumber = CountSpecificNeighbours(tiles, position, Room.TileType.GROUND);
|
int groundNumber = CountSpecificNeighbours(tiles, position, Room.TileType.GROUND) + CountSpecificNeighbours(tiles, position, Room.TileType.ROCK);
|
||||||
switch(groundNumber){
|
switch(groundNumber){
|
||||||
case 0:
|
case 0:
|
||||||
return ExtendedTileType.BorderInner;
|
return ExtendedTileType.BorderInner;
|
||||||
|
|
Loading…
Add table
Reference in a new issue