mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-07-05 03:16:15 +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) {
|
pub fn reset(&mut self) {
|
||||||
self.stage_select_text_y_pos = 54;
|
self.stage_select_text_y_pos = 54;
|
||||||
self.current_teleport_slot = 0;
|
|
||||||
self.tick = 0;
|
self.tick = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -35,6 +34,10 @@ impl GameEntity<(&Player, &Player)> for StageSelect {
|
||||||
.filter(|&&(index, _event_num)| index != 0)
|
.filter(|&&(index, _event_num)| index != 0)
|
||||||
.count();
|
.count();
|
||||||
|
|
||||||
|
if slot_count <= self.current_teleport_slot as usize {
|
||||||
|
self.current_teleport_slot = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if self.stage_select_text_y_pos > 46 {
|
if self.stage_select_text_y_pos > 46 {
|
||||||
self.stage_select_text_y_pos -= 1;
|
self.stage_select_text_y_pos -= 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue