diff options
| author | troido <troido@protonmail.com> | 2020-09-24 22:18:30 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-09-24 22:18:30 +0200 |
| commit | 9eb3a9da97e53cee14e585e027badb3783b8e25e (patch) | |
| tree | 4840bc49cbde975289b3e3b663967a368b444f8b /src/world.rs | |
| parent | 13b53f3e89bcd6d33a534403162d1b09502bec70 (diff) | |
turned sprite, playerid and roomid into tuple structs
Diffstat (limited to 'src/world.rs')
| -rw-r--r-- | src/world.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |
