From 705a47d61c59e14f15fd9ab738d93e411390c9c4 Mon Sep 17 00:00:00 2001 From: Alula Date: Sat, 3 Oct 2020 01:52:52 +0200 Subject: [PATCH] load teleporter slots --- src/profile.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/profile.rs b/src/profile.rs index 90f1224..82de307 100644 --- a/src/profile.rs +++ b/src/profile.rs @@ -75,6 +75,10 @@ impl GameProfile { game_scene.inventory.get_item(item as u16); } + for slot in self.teleporter_slots.iter() { + state.teleporter_slots.push((slot.index as u16, slot.event_num as u16)); + } + for (idx, &flags) in self.flags.iter().enumerate() { if flags & 0b00000001 != 0 { state.game_flags.set(idx * 8, true); } if flags & 0b00000010 != 0 { state.game_flags.set(idx * 8 + 1, true); }