Skip to content

Commit

Permalink
Fix MotionCommand matching
Browse files Browse the repository at this point in the history
Co-authored-by: MaikRe <[email protected]>
  • Loading branch information
ThagonDuarte and MaikRe committed Jan 14, 2025
1 parent 0ef1df4 commit 2c66664
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/bevyhavior_simulator/src/robot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,7 @@ pub fn move_robots(mut robots: Query<&mut Robot>, mut ball: ResMut<BallResource>
head
}
MotionCommand::SitDown { head } => head,
MotionCommand::Stand {
head,
should_look_for_referee: false,
} => head,
MotionCommand::Stand { head, .. } => head,
_ => HeadMotion::Center,
};

Expand Down

0 comments on commit 2c66664

Please sign in to comment.