mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 23:21:20 -04:00
Make the maximum horizontal stepping distance independent of movement speed (Fixes #1638)
This commit is contained in:
parent
e2346d7c37
commit
18fb3f831a
@ -428,7 +428,10 @@ namespace MWWorld
|
|||||||
Ogre::Vector3 oldPosition = newPosition;
|
Ogre::Vector3 oldPosition = newPosition;
|
||||||
// We hit something. Try to step up onto it. (NOTE: stepMove does not allow stepping over)
|
// We hit something. Try to step up onto it. (NOTE: stepMove does not allow stepping over)
|
||||||
// NOTE: stepMove modifies newPosition if successful
|
// NOTE: stepMove modifies newPosition if successful
|
||||||
if(stepMove(colobj, newPosition, velocity, remainingTime, engine))
|
bool result = stepMove(colobj, newPosition, velocity, remainingTime, engine);
|
||||||
|
if (!result)
|
||||||
|
result = stepMove(colobj, newPosition, velocity.normalisedCopy()*300.f, remainingTime, engine);
|
||||||
|
if(result)
|
||||||
{
|
{
|
||||||
// don't let pure water creatures move out of water after stepMove
|
// don't let pure water creatures move out of water after stepMove
|
||||||
if((ptr.getClass().canSwim(ptr) && !ptr.getClass().canWalk(ptr))
|
if((ptr.getClass().canSwim(ptr) && !ptr.getClass().canWalk(ptr))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user