mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2025-03-16 11:26:11 +00:00
Format Rust code using rustfmt
This commit is contained in:
parent
050792a01c
commit
35a80f83c5
1 changed files with 9 additions and 2 deletions
|
@ -72,10 +72,17 @@ pub unsafe fn get_param_int(
|
|||
) -> Option<i32> {
|
||||
if param_type == hash40("common") {
|
||||
if param_hash == hash40("dead_rebirth_wait_frame") {
|
||||
let jostle_frame = WorkModule::get_int(module_accessor, *FIGHTER_INSTANCE_WORK_ID_INT_HIT_STOP_IGNORE_JOSTLE_FRAME);
|
||||
let jostle_frame = WorkModule::get_int(
|
||||
module_accessor,
|
||||
*FIGHTER_INSTANCE_WORK_ID_INT_HIT_STOP_IGNORE_JOSTLE_FRAME,
|
||||
);
|
||||
if jostle_frame > 1 {
|
||||
// Allow jostle to stop being ignored before we respawn
|
||||
WorkModule::set_int(module_accessor, 1, *FIGHTER_INSTANCE_WORK_ID_INT_HIT_STOP_IGNORE_JOSTLE_FRAME);
|
||||
WorkModule::set_int(
|
||||
module_accessor,
|
||||
1,
|
||||
*FIGHTER_INSTANCE_WORK_ID_INT_HIT_STOP_IGNORE_JOSTLE_FRAME,
|
||||
);
|
||||
}
|
||||
return Some(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue