Revert "minedmap: store region list in BTreeSet"

This reverts commit b53d34da3d.

With the change of the mipmapper data structure, we need a conversion
step anyways, so we can keep using the Vec before mipmapping.
This commit is contained in:
Matthias Schiffer 2023-07-02 22:19:35 +02:00
parent b63a18ad6f
commit f9fc9efe8d
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
4 changed files with 10 additions and 12 deletions

View file

@ -80,10 +80,10 @@ impl<'a> TileRenderer<'a> {
})
}
pub fn run(self, regions: impl IntoIterator<Item = TileCoords>) -> Result<()> {
pub fn run(self, regions: &[TileCoords]) -> Result<()> {
fs::create_dir_all(&self.config.tile_dir(TileKind::Map, 0))?;
for coords in regions {
for &coords in regions {
if let Err(err) = self.render_tile(coords) {
eprintln!("Failed to render tile {:?}: {:?}", coords, err);
}