Skip to content

Commit

Permalink
Fix issue where the server wasn't processing orientation info
Browse files Browse the repository at this point in the history
  • Loading branch information
patowen authored and Ralith committed Oct 28, 2023
1 parent 40a5a1e commit 664f9d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/sim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

Expand Down

0 comments on commit 664f9d2

Please sign in to comment.