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:
parent
03bc9566fb
commit
9782b450ef
1 changed files with 8 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue