mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 22:20:33 +00:00
Satisfy king clang
This commit is contained in:
parent
6f7fff409c
commit
72dbad6fb4
@ -594,7 +594,8 @@ namespace MWWorld
|
||||
|
||||
// Only teleport if that teleport point is > the lowest point, rare edge case
|
||||
// also check that collision is enabled, which is opposite to Vanilla
|
||||
if (!refId.empty() && world->isActorCollisionEnabled(playerPtr) && newPos.pos[2] >= mLowestPoint - lowestPointAdjustment)
|
||||
if (!refId.empty() && world->isActorCollisionEnabled(playerPtr)
|
||||
&& newPos.pos[2] >= mLowestPoint - lowestPointAdjustment)
|
||||
{
|
||||
MWWorld::ActionTeleport(refId, newPos, false).execute(playerPtr);
|
||||
Log(Debug::Warning) << "Player position has been reset due to falling into the void";
|
||||
|
Loading…
x
Reference in New Issue
Block a user