Skip to content

Commit

Permalink
Fix broken warp background check
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AllyTally committed Dec 10, 2023
1 parent 6e2d226 commit 7ebe89a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions desktop_version/src/Editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7ebe89a

Please sign in to comment.