From 9eb3a9da97e53cee14e585e027badb3783b8e25e Mon Sep 17 00:00:00 2001 From: troido Date: Thu, 24 Sep 2020 22:18:30 +0200 Subject: turned sprite, playerid and roomid into tuple structs --- src/world.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/world.rs') diff --git a/src/world.rs b/src/world.rs index 6e65f84..b9af6df 100644 --- a/src/world.rs +++ b/src/world.rs @@ -75,7 +75,7 @@ impl <'a, 'b>World<'a, 'b> { fn get_room_mut_(&mut self, id: &RoomId) -> Result<&mut Room<'a, 'b>> { if !self.rooms.contains_key(id){ - println!("loading room '{}'", id.name); + println!("loading room '{}'", id); let mut room: Room = if id == &purgatory::purgatory_id() { purgatory::create_purgatory(&self.encyclopedia) } else { @@ -221,7 +221,7 @@ impl <'a, 'b>World<'a, 'b> { } } for roomid in to_remove { - println!("unloading room '{}'", roomid.name); + println!("unloading room '{}'", roomid); self.rooms.remove(&roomid); } } -- cgit