about summary refs log tree commit diff
path: root/src/game.rs
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2019-07-14T20·31-0400
committerGriffin Smith <root@gws.fyi>2019-07-14T20·31-0400
commitbc93999cf37a65d48f25e30795c85a0aef97efac (patch)
tree0333a4917d95058009fd272e3834f2b36f4ab14b /src/game.rs
parent575a051e6efcd8fd3b0a146f49040e543ae8e5b0 (diff)
Always reset the cursor back to the character
much nicer!
Diffstat (limited to 'src/game.rs')
-rw-r--r--src/game.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game.rs b/src/game.rs
index 57c04cfb883f..48142b637645 100644
--- a/src/game.rs
+++ b/src/game.rs
@@ -242,6 +242,7 @@ impl<'a> Game<'a> {
                         (old_pos - self.character().position).as_tiles(),
                     ));
                     self.viewport.clear(old_pos)?;
+                    self.viewport.cursor_position = self.character().position;
                     self.viewport.draw(
                         // TODO this clone feels unnecessary.
                         &self.character().clone(),