1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-11-21 13:12:45 +00:00
This commit is contained in:
biroder 2023-12-08 15:07:54 +00:00
parent fc66b84d8f
commit a5f49c07e4

View file

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