Fix unit tests and remove advanced_ecb
This commit is contained in:
@@ -211,7 +211,6 @@ pub fn collide_with_stage_grounded(
|
||||
crate::fighter::surface::EcbLockPolicy::StartOnDetach,
|
||||
state_context.leave_ground_ecb_lock_duration,
|
||||
);
|
||||
state_context.ecb_advanced = true;
|
||||
return GroundedMotionResult::InAir;
|
||||
};
|
||||
match resolve_grounded_position(
|
||||
@@ -238,7 +237,6 @@ pub fn collide_with_stage_grounded(
|
||||
crate::fighter::surface::EcbLockPolicy::StartOnDetach,
|
||||
state_context.leave_ground_ecb_lock_duration,
|
||||
);
|
||||
state_context.ecb_advanced = true;
|
||||
return GroundedMotionResult::InAir;
|
||||
}
|
||||
}
|
||||
@@ -247,7 +245,6 @@ pub fn collide_with_stage_grounded(
|
||||
*state_context.ecb = current_ecb;
|
||||
state_context.translation.0 = current_position;
|
||||
state_context.surface.land(line_id, state_context.ledge_info);
|
||||
state_context.ecb_advanced = true;
|
||||
GroundedMotionResult::InGround
|
||||
}
|
||||
|
||||
@@ -419,7 +416,7 @@ mod tests {
|
||||
origin: FGVec2::ZERO,
|
||||
end: FGVec2::ZERO,
|
||||
},
|
||||
ecb_advanced: false,
|
||||
waveland_snap_distance: FGi32::ZERO,
|
||||
};
|
||||
|
||||
assert!(matches!(
|
||||
@@ -484,7 +481,7 @@ mod tests {
|
||||
origin: FGVec2::ZERO,
|
||||
end: FGVec2::ZERO,
|
||||
},
|
||||
ecb_advanced: false,
|
||||
waveland_snap_distance: FGi32::ZERO,
|
||||
};
|
||||
|
||||
assert!(matches!(
|
||||
|
||||
Reference in New Issue
Block a user