From f63effb067b94ff4ad8c6485202e9ba8693aa5dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Rom=C3=A1n=20N=C3=BA=C3=B1ez?= Date: Sun, 27 Sep 2026 17:55:11 +0200 Subject: [PATCH] Fix being hit not causing velocity to reset --- src/fighter/state/hitstun.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fighter/state/hitstun.rs b/src/fighter/state/hitstun.rs index 33cb905..cb7d9e8 100644 --- a/src/fighter/state/hitstun.rs +++ b/src/fighter/state/hitstun.rs @@ -11,8 +11,7 @@ use crate::{ land::LandingType, wait::WaitState, }, - }, - math::int::FGi32, + }, math::{int::FGi32, vec::FGVec2}, }; #[derive(Clone, Debug, Hash)] @@ -103,6 +102,7 @@ impl FighterStateImpl for HitstunState { HitstopStateKind::Airborne => AnimKind::FlinchAir, }; state_context.play_animation(animation, false); + state_context.velocity.0 = FGVec2::ZERO; } fn on_exit(&mut self, _state_context: &mut ExitContext) {}