load teleporter slots

This commit is contained in:
Alula 2020-10-03 01:52:52 +02:00
parent b212d6f74b
commit 705a47d61c
No known key found for this signature in database
GPG Key ID: 3E00485503A1D8BA
1 changed files with 4 additions and 0 deletions

View File

@ -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); }