summaryrefslogtreecommitdiff
path: root/src/view.rs
diff options
context:
space:
mode:
authorTom Barrett <tombarrett@siu.edu>2017-11-23 02:58:34 -0600
committerTom Barrett <tombarrett@siu.edu>2017-11-23 02:58:34 -0600
commit72ea9deb1cf959602a038e5141a86228186a35b3 (patch)
treea2169071db31acf4c8810a6b6ee740fcf0ab3a0b /src/view.rs
parent1c3ec15a9a8b7cef3c544af225d028b3de13d75e (diff)
-added pathfinding
Diffstat (limited to 'src/view.rs')
-rw-r--r--src/view.rs4
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();