Commit bb14c920 authored by Rahix's avatar Rahix 🦀

ingame: Remove superfluous resource

The create_stationary_obstacles() function does not actually return
anything so `obstacles` was of the unit type `()`.  Remove the binding
and stop inserting it as a resource which would wrongly give the
impression of the existence of an obstacles resource.
parent 8e0c2210
......@@ -39,11 +39,10 @@ impl InGameState {
resources.insert(resources::Camera::new(1920.0, 1080.0));
resources.insert(colliders::CollisionWorld::new());
let obstacles = entities::create_stationary_obstacles(&mut world, &level, &player);
entities::create_stationary_obstacles(&mut world, &level, &player);
let player = entities::create_player(&mut world, &level, player);
resources.insert(resources::Player(player));
resources.insert(obstacles);
resources.insert(resources::GameManager::new());
level.apply_colliders(&mut world);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment