diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index f896de3..ccca2db 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,7 +6,6 @@ mod renderer; mod sim; use futures::executor; -use rand::random_range; use std::{collections::VecDeque, sync::Arc, time::Instant}; use winit::{ application::ApplicationHandler, @@ -30,7 +29,7 @@ use crate::{ InputManager, }, renderer::RendererState, - sim::{cell::Cell, rb_manager::DebugRenderMode, sim_manager::SimManager}, + sim::{rb_manager::DebugRenderMode, sim_manager::SimManager}, }; pub type Error = Box<dyn std::error::Error>; @@ -87,7 +86,7 @@ impl App { )); } - if self.input_manager.pressed(Input::Action2) { + if self.input_manager.pressed(Input::Grenade) { sim.create_entity(entity_grenade_def(self.input_manager.world_mouse_pos, 3.0)); } |
