1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 15:39:02 +00:00

Ignore per-cell water height in exterior ESM4::Cell

This commit is contained in:
Petr Mikheev 2023-05-29 22:39:26 +02:00
parent 5cb4c66266
commit 84d7da1f2c

View File

@ -30,7 +30,7 @@ namespace MWWorld
.mFogDensity = 1.f,}
,mWaterHeight(cell.mWaterHeight)
{
if (isExterior() && mWaterHeight == ESM4::Cell::sInvalidWaterLevel)
if (isExterior())
{
auto& worldStore = MWBase::Environment::get().getESMStore()->get<ESM4::World>();
const ESM4::World* cellWorld = worldStore.find(mParent);