mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00:00
Remove redundant CollisionInfo::plane
This commit is contained in:
parent
f916f5de78
commit
9a44d835d6
3 changed files with 3 additions and 7 deletions
|
@ -1196,7 +1196,7 @@ void LocalPlayer::handleAutojump(f32 dtime, Environment *env,
|
|||
|
||||
bool horizontal_collision = false;
|
||||
for (const auto &colinfo : result.collisions) {
|
||||
if (colinfo.type == COLLISION_NODE && colinfo.plane != 1) {
|
||||
if (colinfo.type == COLLISION_NODE && colinfo.axis != COLLISION_AXIS_Y) {
|
||||
horizontal_collision = true;
|
||||
break; // one is enough
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue