From 976ad40137cf468eda32b1d947c524bfaeeaa7da Mon Sep 17 00:00:00 2001 From: tom barrett Date: Tue, 2 Jul 2019 10:17:19 -0500 Subject: cargo updated --- src/state.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/state.rs') 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(()) } -- cgit v1.2.3