1
0
Fork 0
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:
Alula 2020-12-04 13:00:45 +01:00
parent a9f626c3b5
commit 3b1cd80d6a
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA

View file

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