Add mechanism to ignore platforms (#63)
CI / build-and-test (push) Successful in 1m30s
CI / production-build (push) Successful in 10m48s

Reviewed-on: #63
Co-authored-by: Álex Román Núñez <eirexe@eirteam.moe>
This commit was merged in pull request #63.
This commit is contained in:
2026-09-25 21:43:49 +00:00
committed by EIREXE
parent 946bbc4cbd
commit 66a817cd05
6 changed files with 161 additions and 16 deletions
+3 -2
View File
@@ -105,8 +105,8 @@ pub fn update_ecb(
let left = FGVec2::new(min_x, midpoint_height);
let right = FGVec2::new(max_x, midpoint_height);
let ecb_lock_frames_remaining = if let FighterSurfaceState::Airborne { ecb_lock_frames_remaining } = *surface_state {
ecb_lock_frames_remaining
let ecb_lock_frames_remaining = if let FighterSurfaceState::Airborne { ecb_lock_frames_remaining, .. } = surface_state {
*ecb_lock_frames_remaining
} else {
0
};
@@ -129,6 +129,7 @@ pub fn update_ecb(
pub fn decrement_ecb_lockout(surface_states: Query<&mut FighterSurfaceState>) {
for mut state in surface_states {
state.tick_ecb_lock();
state.tick_ignored_polygons();
}
}