mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-21 05:44:06 +00:00
Fix inverted setting of variable
This commit is contained in:
parent
5a939418fc
commit
35bb467c7a
1 changed files with 2 additions and 2 deletions
|
@ -268,12 +268,12 @@ namespace MWPhysics
|
||||||
( (toOsg(resultCallback1.m_hitPointWorld) - tracer.mEndPos).length2() > 35*35
|
( (toOsg(resultCallback1.m_hitPointWorld) - tracer.mEndPos).length2() > 35*35
|
||||||
|| !isWalkableSlope(tracer.mPlaneNormal)))
|
|| !isWalkableSlope(tracer.mPlaneNormal)))
|
||||||
{
|
{
|
||||||
actor->setOnSlope(isWalkableSlope(resultCallback1.m_hitNormalWorld));
|
actor->setOnSlope(!isWalkableSlope(resultCallback1.m_hitNormalWorld));
|
||||||
return toOsg(resultCallback1.m_hitPointWorld) + osg::Vec3f(0.f, 0.f, 1.f);
|
return toOsg(resultCallback1.m_hitPointWorld) + osg::Vec3f(0.f, 0.f, 1.f);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
actor->setOnSlope(isWalkableSlope(tracer.mPlaneNormal));
|
actor->setOnSlope(!isWalkableSlope(tracer.mPlaneNormal));
|
||||||
}
|
}
|
||||||
|
|
||||||
return tracer.mEndPos;
|
return tracer.mEndPos;
|
||||||
|
|
Loading…
Reference in a new issue