aboutsummaryrefslogtreecommitdiff
path: root/client/src/world/map.rs
diff options
context:
space:
mode:
authormetamuffin <yvchraiqi@protonmail.com>2022-06-09 20:14:04 +0200
committermetamuffin <yvchraiqi@protonmail.com>2022-06-09 20:14:04 +0200
commite3a4790893b5d5f9cf8fbc44ececd65711d572cb (patch)
tree45c8aa98c63b917106720da6c1946922b6a3ea37 /client/src/world/map.rs
parent96e2ffc5f1ce1ff6163fc7fa31d51a6c36a9c0d5 (diff)
downloadtwclient-e3a4790893b5d5f9cf8fbc44ececd65711d572cb.tar
twclient-e3a4790893b5d5f9cf8fbc44ececd65711d572cb.tar.bz2
twclient-e3a4790893b5d5f9cf8fbc44ececd65711d572cb.tar.zst
sdfgsdfgsjndfkjlgsdh
Diffstat (limited to 'client/src/world/map.rs')
-rw-r--r--client/src/world/map.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/world/map.rs b/client/src/world/map.rs
index c6355f2..c8522b9 100644
--- a/client/src/world/map.rs
+++ b/client/src/world/map.rs
@@ -64,15 +64,18 @@ impl Map {
}
for layer_idx in group.layer_indices {
+ info!("loading {}", pretty::AlmostString::new(&group.name));
let layer = map.layer(layer_idx).unwrap();
let tilemap = if let reader::LayerType::Tilemap(t) = layer.t {
t
} else {
+ warn!("non-tilemap layer skipped");
continue;
};
let normal = if let Some(n) = tilemap.type_.to_normal() {
n
} else {
+ warn!("non-normal layer skipped");
continue;
};
let tiles = map.layer_tiles(tilemap.tiles(normal.data)).unwrap();