From 6b152d1b551353ae58f38b046596eb8d0418f39b Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Fri, 24 Nov 2017 06:53:29 -0600 Subject: -gave threads more time to calculate before joining (would even like to do a non blocking join one day) --- src/character.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/character.rs') diff --git a/src/character.rs b/src/character.rs index 0d19193..6a71d4c 100644 --- a/src/character.rs +++ b/src/character.rs @@ -109,7 +109,6 @@ impl Character { fn move_along_path(&mut self, free_spaces : Vec<(Location, usize)>) { let mut moved = false; match self.path { - None => (), Some(ref mut calculated_path) => { if calculated_path.len() > 0 { let next_location = calculated_path.pop().unwrap(); @@ -125,6 +124,7 @@ impl Character { self.order = Orders::Wait as u8; } } + _ => (), } if !moved { self.path = None; -- cgit v1.2.3