summaryrefslogtreecommitdiff
path: root/src/character.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/character.rs')
-rw-r--r--src/character.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/character.rs b/src/character.rs
index 6a71d4c..421ede4 100644
--- a/src/character.rs
+++ b/src/character.rs
@@ -1,7 +1,6 @@
extern crate rand;
use character::rand::Rng;
-
use constants::Orders;
use location::Location;
@@ -70,15 +69,7 @@ impl Character {
}
pub fn give_path(&mut self, path : Option<Vec<Location>>) {
- match path {
- Some(path) => {
- self.path = Some(path);
- },
- None => {
- self.path = None;
- self.order = Orders::Wander as u8;
- },
- }
+ self.path = path;
}
pub fn give_destination(&mut self, destination : Location) {