From 72ea9deb1cf959602a038e5141a86228186a35b3 Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Thu, 23 Nov 2017 02:58:34 -0600 Subject: -added pathfinding --- src/view.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/view.rs') 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(); -- cgit v1.2.3