From 664f9d232d37c2349e6dbee2772e86557f6b034c Mon Sep 17 00:00:00 2001 From: Patrick Owen Date: Sat, 28 Oct 2023 14:02:30 -0400 Subject: [PATCH] Fix issue where the server wasn't processing orientation info --- server/src/sim.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/sim.rs b/server/src/sim.rs index 3d267212..0fa42198 100644 --- a/server/src/sim.rs +++ b/server/src/sim.rs @@ -159,6 +159,8 @@ impl Sim { ) -> Result<(), hecs::ComponentError> { let mut input = self.world.get::<&mut CharacterInput>(entity)?; *input = command.character_input; + let mut ch = self.world.get::<&mut Character>(entity)?; + ch.state.orientation = command.orientation; Ok(()) }