mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Restore OpGetWaterLevel to vanilla behaviour
This commit is contained in:
parent
d0c6b407b4
commit
389b168d5f
@ -144,7 +144,9 @@ namespace MWScript
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
MWWorld::CellStore *cell = MWMechanics::getPlayer().getCell();
|
MWWorld::CellStore *cell = MWMechanics::getPlayer().getCell();
|
||||||
if (cell->getCell()->hasWater())
|
if (cell->isExterior())
|
||||||
|
runtime.push(0.f); // vanilla oddity, return 0 even though water is actually at -1
|
||||||
|
else if (cell->getCell()->hasWater())
|
||||||
runtime.push (cell->getWaterLevel());
|
runtime.push (cell->getWaterLevel());
|
||||||
else
|
else
|
||||||
runtime.push (-std::numeric_limits<float>::max());
|
runtime.push (-std::numeric_limits<float>::max());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user