diff options
author | Tom Barrett <tombarrett@siu.edu> | 2017-11-24 06:53:29 -0600 |
---|---|---|
committer | Tom Barrett <tombarrett@siu.edu> | 2017-11-24 06:53:29 -0600 |
commit | 6b152d1b551353ae58f38b046596eb8d0418f39b (patch) | |
tree | dd981dac665dbd9cc2f81e86f634f6d61fdbc5a2 /src/character.rs | |
parent | 007bb4def33ac4291f6d5b014ab57f2c760c1e3b (diff) |
-gave threads more time to calculate before joining (would even like to do a non blocking join one day)
Diffstat (limited to 'src/character.rs')
-rw-r--r-- | src/character.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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; |