mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 23:21:20 -04:00
Merge pull request #1126 from Allofich/waterwalking
Don't allow resting on water with water walking
This commit is contained in:
commit
5658817581
@ -2183,7 +2183,7 @@ namespace MWWorld
|
||||
if (!actor)
|
||||
throw std::runtime_error("can't find player");
|
||||
|
||||
if ((actor->getCollisionMode() && !mPhysics->isOnSolidGround(player)) || isUnderwater(currentCell, playerPos))
|
||||
if ((actor->getCollisionMode() && !mPhysics->isOnSolidGround(player)) || isUnderwater(currentCell, playerPos) || isWalkingOnWater(player))
|
||||
return 2;
|
||||
|
||||
if((currentCell->getCell()->mData.mFlags&ESM::Cell::NoSleep) || player.getClass().getNpcStats(player).isWerewolf())
|
||||
|
Loading…
x
Reference in New Issue
Block a user