1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-03-16 11:26:11 +00:00

ensure falling for fastfall toggle

This commit is contained in:
jugeeya 2020-07-12 10:41:48 -07:00
parent 8b91b452e5
commit 2dc8b1b5b9
4 changed files with 5 additions and 5 deletions

View file

@ -61,7 +61,7 @@ pub unsafe fn get_command_flag_cat(
return;
}
if category != 0 {
if category != FIGHTER_PAD_COMMAND_CATEGORY1 {
return;
}

View file

@ -22,7 +22,7 @@ pub unsafe fn get_command_flag_cat(
}
// Once per frame
if category != 0 {
if category != FIGHTER_PAD_COMMAND_CATEGORY1 {
return;
}
@ -73,7 +73,7 @@ pub fn is_falling(module_accessor: &mut app::BattleObjectModuleAccessor) -> bool
unsafe {
let y_speed =
KineticModule::get_sum_speed_y(module_accessor, *FIGHTER_KINETIC_ENERGY_ID_GRAVITY);
y_speed < 0.0
y_speed < 0.0 && StatusModule::status_kind(module_accessor) == FIGHTER_STATUS_KIND_FALL
}
}

View file

@ -82,7 +82,7 @@ pub unsafe fn get_command_flag_cat(
}
// Only do once per frame
if category != 0 {
if category != FIGHTER_PAD_COMMAND_CATEGORY1 {
return;
}

View file

@ -65,7 +65,7 @@ pub unsafe fn save_states(module_accessor: &mut app::BattleObjectModuleAccessor,
return;
}
if category != 0 {
if category != FIGHTER_PAD_COMMAND_CATEGORY1 {
return;
}