From de4e8c1f0b82627fd1980401ae63472f49c9d89c Mon Sep 17 00:00:00 2001 From: tom barrett Date: Sun, 7 Jul 2019 11:45:49 -0500 Subject: reorganized --- src/map.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/map.rs') diff --git a/src/map.rs b/src/map.rs index 7042f58..8ef6f4e 100644 --- a/src/map.rs +++ b/src/map.rs @@ -7,7 +7,8 @@ use xml::reader::XmlEvent::Characters; use crate::constants; use crate::entity::Operable; use crate::layer::Layer; -use crate::tileset::{Tile, Tileset}; +use crate::tile::Tile; +use crate::tileset::Tileset; use crate::xmlelements::XMLElements; #[derive(Clone)] @@ -79,7 +80,8 @@ impl Map { for cell in layer.cells.iter() { for (id, tile) in spawn_tiles.iter() { if id == &cell.id { - spawn_points.push((tile.property.spawn.clone().unwrap(), cell.destination)); + spawn_points + .push((tile.properties.spawn.clone().unwrap(), cell.destination)); } } } -- cgit v1.2.3