From 35bb467c7a385ba754ceb0b3af54aed1832d0c42 Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 7 Feb 2017 05:28:06 +0100 Subject: [PATCH] Fix inverted setting of variable --- apps/openmw/mwphysics/physicssystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwphysics/physicssystem.cpp b/apps/openmw/mwphysics/physicssystem.cpp index 0ab636865..6d7daa3b8 100644 --- a/apps/openmw/mwphysics/physicssystem.cpp +++ b/apps/openmw/mwphysics/physicssystem.cpp @@ -268,12 +268,12 @@ namespace MWPhysics ( (toOsg(resultCallback1.m_hitPointWorld) - tracer.mEndPos).length2() > 35*35 || !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); } else { - actor->setOnSlope(isWalkableSlope(tracer.mPlaneNormal)); + actor->setOnSlope(!isWalkableSlope(tracer.mPlaneNormal)); } return tracer.mEndPos;