1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 17:15:32 +00:00

Merge pull request #328 from OpenMW/master

Add OpenMW commits up to 31 Oct 2017
This commit is contained in:
David Cernat 2017-10-31 06:22:57 +02:00 committed by GitHub
commit a31d43965f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -768,7 +768,7 @@ namespace MWGui
}
}
if (!found)
if (!found || selected == cycled)
return;
useItem(model.getItem(cycled).mBase);

View file

@ -357,10 +357,9 @@ namespace MWPhysics
osg::Vec3f nextpos = newPosition + velocity * remainingTime;
// If not able to fly, don't allow to swim up into the air
if(newPosition.z() < swimlevel &&
!isFlying && // can't fly
if(!isFlying && // can't fly
nextpos.z() > swimlevel && // but about to go above water
newPosition.z() <= swimlevel)
newPosition.z() < swimlevel)
{
const osg::Vec3f down(0,0,-1);
velocity = slide(velocity, down);