mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-21 09:39:56 +00:00
Force-enable hasWater() for exterior cells (Fixes #3222)
This commit is contained in:
parent
563807ee53
commit
3d6323f13a
@ -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…
x
Reference in New Issue
Block a user