dedupe tiles again (not sure why 0 tile is still getting added)
This commit is contained in:
parent
d071bfac97
commit
715b01cbe6
|
@ -66,7 +66,7 @@ pub fn add_tiles(game_data: String, image: String, prefix: String) -> String {
|
|||
colour_id: None
|
||||
};
|
||||
|
||||
if tile != bitsy_parser::mock::tile_background() && !game.tiles.contains(&tile) {
|
||||
if !game.tiles.contains(&tile) {
|
||||
game.add_tile(tile);
|
||||
|
||||
tile_index += 1;
|
||||
|
@ -74,6 +74,7 @@ pub fn add_tiles(game_data: String, image: String, prefix: String) -> String {
|
|||
}
|
||||
}
|
||||
|
||||
game.dedupe_tiles();
|
||||
game.to_string()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue