Stopping auto-walk after death: Fixes #607

This commit is contained in:
Giovanni Spera 2020-07-07 20:56:44 +02:00
parent e8b4b29d70
commit 4232148b83

View File

@ -326,6 +326,7 @@ impl PlayState for SessionState {
Event::InputUpdate(GameInput::Respawn, state)
if state != self.key_state.respawn =>
{
stop_auto_walk(&mut auto_walk, &mut self.key_state, &mut self.hud);
self.key_state.respawn = state;
if state {
self.client.borrow_mut().respawn();