1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-02 19:13:31 +02:00

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

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:
else
{
set_tile(tile_x, tile_y, 1);
}
break;
case TileType_SPIKE:
set_tile(tile_x, tile_y, 6);