From 1148cd7ec699032ef4d8012b21af58329fef2920 Mon Sep 17 00:00:00 2001 From: jugeeya Date: Fri, 8 Mar 2024 20:21:06 -0800 Subject: [PATCH] Fix frame advantage double-counting (#672) --- src/training/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/training/mod.rs b/src/training/mod.rs index a0eaf2c..130ee24 100644 --- a/src/training/mod.rs +++ b/src/training/mod.rs @@ -125,9 +125,6 @@ fn once_per_frame_per_fighter(module_accessor: &mut BattleObjectModuleAccessor, } unsafe { - input_record::handle_recording(); - frame_counter::tick_ingame(); - tech::hide_tech(); if menu::menu_condition() { menu::spawn_menu(); } @@ -139,6 +136,9 @@ fn once_per_frame_per_fighter(module_accessor: &mut BattleObjectModuleAccessor, !(MENU.stale_dodges.as_bool()), *FIGHTER_INSTANCE_WORK_ID_FLAG_DISABLE_ESCAPE_PENALTY, ); + input_record::handle_recording(); + frame_counter::tick_ingame(); + tech::hide_tech(); } combo::get_command_flag_cat(module_accessor);