mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-01-10 04:57:02 +00:00
fix teleporter menu running always the first event
This commit is contained in:
parent
a9f626c3b5
commit
3b1cd80d6a
|
@ -24,7 +24,6 @@ impl StageSelect {
|
|||
|
||||
pub fn reset(&mut self) {
|
||||
self.stage_select_text_y_pos = 54;
|
||||
self.current_teleport_slot = 0;
|
||||
self.tick = 0;
|
||||
}
|
||||
}
|
||||
|
@ -35,6 +34,10 @@ impl GameEntity<(&Player, &Player)> for StageSelect {
|
|||
.filter(|&&(index, _event_num)| index != 0)
|
||||
.count();
|
||||
|
||||
if slot_count <= self.current_teleport_slot as usize {
|
||||
self.current_teleport_slot = 0;
|
||||
}
|
||||
|
||||
if self.stage_select_text_y_pos > 46 {
|
||||
self.stage_select_text_y_pos -= 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue