forked from mirror/openmw-tes3mp
Force-enable hasWater() for exterior cells (Fixes #3222)
This commit is contained in:
parent
563807ee53
commit
3d6323f13a
2 changed files with 2 additions and 2 deletions
|
@ -2039,7 +2039,7 @@ namespace MWWorld
|
|||
|
||||
bool World::isUnderwater(const MWWorld::CellStore* cell, const osg::Vec3f &pos) const
|
||||
{
|
||||
if (!(cell->getCell()->mData.mFlags & ESM::Cell::HasWater)) {
|
||||
if (!(cell->getCell()->hasWater())) {
|
||||
return false;
|
||||
}
|
||||
return pos.z() < cell->getWaterLevel();
|
||||
|
|
|
@ -141,7 +141,7 @@ struct Cell
|
|||
|
||||
bool hasWater() const
|
||||
{
|
||||
return (mData.mFlags&HasWater) != 0;
|
||||
return ((mData.mFlags&HasWater) != 0) || isExterior();
|
||||
}
|
||||
|
||||
// Restore the given reader to the stored position. Will try to open
|
||||
|
|
Loading…
Reference in a new issue