1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01: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 committed by Misa Elizabeth Kai
parent 03bc9566fb
commit 9782b450ef

View file

@ -4065,13 +4065,17 @@ void editorclass::make_autotiling_base(void)
switch (type) switch (type)
{ {
case TileType_NONSOLID: 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); set_tile(tile_x, tile_y, 2);
} }
break; else
case TileType_SOLID: {
set_tile(tile_x, tile_y, 1); set_tile(tile_x, tile_y, 1);
}
break; break;
case TileType_SPIKE: case TileType_SPIKE:
set_tile(tile_x, tile_y, 6); set_tile(tile_x, tile_y, 6);