diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/src/world/map.rs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/client/src/world/map.rs b/client/src/world/map.rs index fb67918..fcc24c0 100644 --- a/client/src/world/map.rs +++ b/client/src/world/map.rs @@ -1,7 +1,7 @@ use ::map as mapfile; use anyhow::Error; -use common::{num::Cast, vec}; -use log::{info, log}; +use common::{num::Cast, pretty, vec}; +use log::{info, log, warn}; use ndarray::Array2; use std::{ collections::{hash_map, HashMap}, @@ -51,12 +51,20 @@ impl Map { || group.offset_y != 0 || group.clipping.is_some() { + warn!( + "skipping layer: {}: off_x:{} off_y:{} parallax_x:{} parallax_y:{} clipping:{:?}", + pretty::AlmostString::new(&group.name), + group.offset_x, + group.offset_y, + group.parallax_x, + group.parallax_y, + group.clipping, + ); continue; } for layer_idx in group.layer_indices { let layer = map.layer(layer_idx).unwrap(); - let tilemap = if let reader::LayerType::Tilemap(t) = layer.t { t } else { @@ -106,6 +114,7 @@ impl Map { Array2::from_shape_vec((height, width), data).unwrap() } None => { + warn!("layer with external tileset skipped"); continue; // let image_name = map.image_name(image.name)?; // // WARN? Unknown external image |