dedupe tiles again (not sure why 0 tile is still getting added)

This commit is contained in:
Max Bradbury 2020-07-19 15:43:50 +01:00
parent d071bfac97
commit 715b01cbe6
1 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,7 @@ pub fn add_tiles(game_data: String, image: String, prefix: String) -> String {
colour_id: None colour_id: None
}; };
if tile != bitsy_parser::mock::tile_background() && !game.tiles.contains(&tile) { if !game.tiles.contains(&tile) {
game.add_tile(tile); game.add_tile(tile);
tile_index += 1; 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() game.to_string()
} }