mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Make is_mid_air use on_surface().is_none()
This commit is contained in:
parent
a82f5ca057
commit
c2247686db
@ -318,9 +318,7 @@ impl<'a> PhysicsData<'a> {
|
||||
char_state_maybe,
|
||||
)| {
|
||||
let is_sticky = sticky.is_some();
|
||||
// Code reviewers: remind me to check why on_ground was true instead of false
|
||||
// here?
|
||||
let is_mid_air = physics.on_wall.is_none() && physics.on_ground.is_some();
|
||||
let is_mid_air = physics.on_surface().is_none();
|
||||
let mut entity_entity_collision_checks = 0;
|
||||
let mut entity_entity_collisions = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user