Compare commits

..
Author SHA1 Message Date
EIREXE 0cc8ffc2e2 Deduplicate fighter state lifecycle policies
CI / build-and-test (pull_request) Failing after 10m50s
2026-09-16 20:16:41 +02:00
3 changed files with 3 additions and 5 deletions
+2 -2
View File
@@ -23,9 +23,9 @@ jobs:
"$HOME/.cargo/bin/rustup" toolchain install nightly-2026-09-14 --profile minimal
- name: Cache Rust dependencies and build artifacts
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
with:
prefix-key: v2-rust
prefix-key: v1-rust
shared-key: linux-nightly
cache-bin: false
-2
View File
@@ -150,7 +150,6 @@ pub struct UpdateContext<'a> {
pub fighter_attributes: &'a FighterAttributes,
pub attack_scripts: &'a Assets<FighterAttackScript>,
pub attack_script_assets: &'a FighterAttackScriptAssets,
pub facing_direction: &'a FighterFacingDirection,
}
impl UpdateContext<'_> {
@@ -291,7 +290,6 @@ impl<'w, 's> FighterFrameQueryItem<'w, 's> {
fighter_attributes: attributes,
attack_scripts,
attack_script_assets,
facing_direction: &self.facing_direction
}
}
+1 -1
View File
@@ -41,7 +41,7 @@ impl FighterStateImpl for RunState {
let last_frame = state_context.input.get_last_frame();
let (accel, target_vel) = state_context
.fighter_attributes
.get_accel_and_target_dashrun(&last_frame, state_context.facing_direction.to_sign());
.get_accel_and_target_dashrun(&last_frame, FGi32::ONE);
let accel = ground::compute_ground_accel(
accel,
target_vel,