Fix unit tests and remove advanced_ecb
CI / build-and-test (pull_request) Successful in 1m43s
CI / production-build (pull_request) Successful in 11m2s

This commit is contained in:
2026-10-13 23:16:08 +02:00
parent 5be69cab52
commit 4294544944
7 changed files with 19 additions and 35 deletions
+2 -5
View File
@@ -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!(