diff options
author | Tom Barrett <tombarrett@siu.edu> | 2017-11-23 02:58:34 -0600 |
---|---|---|
committer | Tom Barrett <tombarrett@siu.edu> | 2017-11-23 02:58:34 -0600 |
commit | 72ea9deb1cf959602a038e5141a86228186a35b3 (patch) | |
tree | a2169071db31acf4c8810a6b6ee740fcf0ab3a0b /src/view.rs | |
parent | 1c3ec15a9a8b7cef3c544af225d028b3de13d75e (diff) |
-added pathfinding
Diffstat (limited to 'src/view.rs')
-rw-r--r-- | src/view.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view.rs b/src/view.rs index c19ee63..d62454b 100644 --- a/src/view.rs +++ b/src/view.rs @@ -23,8 +23,8 @@ impl View { } pub fn center(&mut self, character : Character, map_window : &pancurses::Window) { - let c = character.location.x - self.width/2; - let r = character.location.y - self.height/2; + let c = character.location.0 - self.width/2; + let r = character.location.1 - self.height/2; let (hh, ww) = map_window.get_max_yx(); |