mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2024-11-21 21:22:44 +00:00
Fix #241
This commit is contained in:
parent
fc66b84d8f
commit
a5f49c07e4
|
@ -769,8 +769,15 @@ impl<T: std::cmp::PartialEq + std::default::Default + Clone> Menu<T> {
|
|||
controller: &mut CombinedMenuController,
|
||||
state: &mut SharedGameState,
|
||||
) -> MenuSelectionResult<T> {
|
||||
// the engine does 4 times more ticks during cutscene skipping
|
||||
let max_anim_wait = if state.textscript_vm.flags.cutscene_skip() {
|
||||
32
|
||||
} else {
|
||||
8
|
||||
};
|
||||
|
||||
self.anim_wait += 1;
|
||||
if self.anim_wait > 8 {
|
||||
if self.anim_wait > max_anim_wait {
|
||||
self.anim_wait = 0;
|
||||
|
||||
self.anim_num += 1;
|
||||
|
|
Loading…
Reference in a new issue