intent refactor
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
use crate::world::World;
|
||||
|
||||
pub fn snow_system(world: &mut World, noclip: bool)
|
||||
pub fn snow_system(world: &mut World)
|
||||
{
|
||||
let camera_pos = world.active_camera_position();
|
||||
let player_pos = world.player_position();
|
||||
let is_following = world.camera_is_following();
|
||||
if let Some(ref mut snow_layer) = world.snow_layer
|
||||
{
|
||||
if !noclip
|
||||
if is_following
|
||||
{
|
||||
snow_layer.deform_at_position(player_pos, 1.5, 10.0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user