mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-05-16 17:59:04 -05:00
fix tilemap import
a bug caused the tilemap to protect the wrong tiles
This commit is contained in:
parent
303bb131a3
commit
18cd3d4528
|
|
@ -213,7 +213,7 @@ namespace HavenSoft.HexManiac.Core.Models.Runs.Sprites {
|
|||
int x = i % tileWidth;
|
||||
if (y >= tileHeight) break;
|
||||
if (previousTiles.Count <= originalTilemap[i]) break;
|
||||
if (TilesMatch(previousTiles[originalTilemap[i]], tileData[x, y].pixels, flipPossible: false) == TileMatchType.Normal) tilesToKeep.Add(i);
|
||||
if (TilesMatch(previousTiles[originalTilemap[i]], tileData[x, y].pixels, flipPossible: false) == TileMatchType.Normal) tilesToKeep.Add(originalTilemap[i]);
|
||||
}
|
||||
|
||||
tiles = MergeTilesets(previousTiles, tilesToKeep, tiles, run.BytesPerTile == 2);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user