diff options
author | tom barrett <spalf0@gmail.com> | 2019-07-02 10:17:19 -0500 |
---|---|---|
committer | tom barrett <spalf0@gmail.com> | 2019-07-02 10:17:19 -0500 |
commit | 976ad40137cf468eda32b1d947c524bfaeeaa7da (patch) | |
tree | f27dfa9da31903b73e14a0572cf738b4b62dcf4b /src/state.rs | |
parent | 6bf9e96140c91340d6ae643b6e0896aa734d8605 (diff) |
cargo updated
Diffstat (limited to 'src/state.rs')
-rw-r--r-- | src/state.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs index 1eb5e17..a541a02 100644 --- a/src/state.rs +++ b/src/state.rs @@ -41,6 +41,9 @@ impl EventHandler for State { fn update(&mut self, _context: &mut Context) -> GameResult { self.map.update(); self.player.update(); + for entity in self.entities.iter_mut() { + entity.update(); + } self.camera.give_center(self.player.position); Ok(()) } |