1
0
Fork 0
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:
sfan5 2024-11-08 15:03:48 +01:00
parent f916f5de78
commit 9a44d835d6
3 changed files with 3 additions and 7 deletions

View file

@ -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
}