Fix broken warp background check

Seems like I made a mistake while originally writing the "make
autotiling base" code. This commit fixes the warp background turning
into solid tiles when you switch to a different tileset.
This commit is contained in:
AllyTally 2023-12-09 22:27:41 -04:00
parent a0915a0ce1
commit 028fe13301
1 changed files with 8 additions and 4 deletions

View File

@ -4065,13 +4065,17 @@ void editorclass::make_autotiling_base(void)
switch (type)
{
case TileType_NONSOLID:
if (type == TileType_NONSOLID || is_warp_zone_background(tile))
set_tile(tile_x, tile_y, 2);
break;
case TileType_SOLID:
if (is_warp_zone_background(tile))
{
set_tile(tile_x, tile_y, 2);
}
break;
case TileType_SOLID:
set_tile(tile_x, tile_y, 1);
else
{
set_tile(tile_x, tile_y, 1);
}
break;
case TileType_SPIKE:
set_tile(tile_x, tile_y, 6);