forked from mirror/openmw-tes3mp
Silence some console spam
This commit is contained in:
parent
ee3764e9b3
commit
e217a3d25c
1 changed files with 4 additions and 4 deletions
|
@ -143,9 +143,7 @@ namespace MWWorld
|
||||||
//std::cout<<"angle: "<<getSlope(trace.planenormal)<<"\n";
|
//std::cout<<"angle: "<<getSlope(trace.planenormal)<<"\n";
|
||||||
if(getSlope(currentNormal) > sMaxSlope || currentNormal == lastNormal)
|
if(getSlope(currentNormal) > sMaxSlope || currentNormal == lastNormal)
|
||||||
{
|
{
|
||||||
if(stepMove(newPosition, velocity, remainingTime, verticalRotation, halfExtents, isInterior, engine))
|
if(!stepMove(newPosition, velocity, remainingTime, verticalRotation, halfExtents, isInterior, engine))
|
||||||
std::cout<< "stepped" <<std::endl;
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
Ogre::Vector3 resultantDirection = currentNormal.crossProduct(up);
|
Ogre::Vector3 resultantDirection = currentNormal.crossProduct(up);
|
||||||
resultantDirection.normalise();
|
resultantDirection.normalise();
|
||||||
|
@ -154,8 +152,10 @@ namespace MWWorld
|
||||||
|
|
||||||
// just this isn't enough sometimes. It's the same problem that causes steps to be necessary on even uphill terrain.
|
// just this isn't enough sometimes. It's the same problem that causes steps to be necessary on even uphill terrain.
|
||||||
clippedVelocity += currentNormal*clippedVelocity.length()/50.0f;
|
clippedVelocity += currentNormal*clippedVelocity.length()/50.0f;
|
||||||
std::cout<< "clipped velocity: "<<clippedVelocity <<std::endl;
|
//std::cout<< "clipped velocity: "<<clippedVelocity <<std::endl;
|
||||||
}
|
}
|
||||||
|
//else
|
||||||
|
// std::cout<< "stepped" <<std::endl;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
clipVelocity(clippedVelocity, currentNormal, clippedVelocity, 1.0f);
|
clipVelocity(clippedVelocity, currentNormal, clippedVelocity, 1.0f);
|
||||||
|
|
Loading…
Reference in a new issue