Hands-on Rust: skip turn needs TurnState update to be moved further down (page 138)

Hello again!

In order to skip turn with the space key I had to move

*turn_state = TurnState::PlayerTurn;

to the line after the end of the if delta.x != 0 || delta.y != 0 block. Otherwise it would only change state if the Player actually moved.

1 Like

Thank you! I’ve logged the issue, should be able to get that into beta 3 this week.

2 Likes