1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-28 04:44:06 +00:00

turn visuals back on in non-training

This commit is contained in:
jugeeya 2020-05-17 16:20:27 -07:00
parent 43af53dc26
commit c470d54621

View file

@ -174,9 +174,11 @@ pub unsafe fn get_command_flag_cat(
module_accessor: &mut app::BattleObjectModuleAccessor, module_accessor: &mut app::BattleObjectModuleAccessor,
category: i32, category: i32,
) { ) {
if is_training_mode() {
// Pause Effect AnimCMD if hitbox visualization is active // Pause Effect AnimCMD if hitbox visualization is active
MotionAnimcmdModule::set_sleep_effect(module_accessor, MENU.hitbox_vis MotionAnimcmdModule::set_sleep_effect(module_accessor, MENU.hitbox_vis
&& !((*FIGHTER_STATUS_KIND_CATCH..=*FIGHTER_STATUS_KIND_TREAD_FALL).contains(&StatusModule::status_kind(module_accessor)))); && !((*FIGHTER_STATUS_KIND_CATCH..=*FIGHTER_STATUS_KIND_TREAD_FALL).contains(&StatusModule::status_kind(module_accessor))));
}
// apply only once per frame // apply only once per frame
if category == 0 && is_training_mode() && MENU.hitbox_vis { if category == 0 && is_training_mode() && MENU.hitbox_vis {