mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Create Dir type for better enforcement of non NaN, normalized representations of directions
This commit is contained in:
@ -63,12 +63,6 @@ impl<'a> System<'a> for Sys {
|
||||
inputs.move_dir
|
||||
};
|
||||
|
||||
// Update `inputs.look_dir`
|
||||
inputs
|
||||
.look_dir
|
||||
.try_normalized()
|
||||
.unwrap_or(inputs.move_dir.into());
|
||||
|
||||
// Process other controller events
|
||||
for event in controller.events.drain(..) {
|
||||
match event {
|
||||
|
Reference in New Issue
Block a user