BUG: GetWaterLevel is broken in interior cells

Cheb Master
2026-03-27T17:10:00Z

<!--PLEASE READ THIS BEFORE POSTING:
If you're reporting an issue specific to an OpenMW fork:
- TES3MP (Multiplayer): Report at https://github.com/TES3MP/openmw-tes3mp/issues
- OpenMW-VR: Report at https://gitlab.com/madsbuvi/openmw/-/issues

Mod list issues or mod installer issues do not belong here.
If reporting an issue with a specific open Merge Request, comment on the MR itself.-->

## Issue Description

Mod "Swimming Realism" 1.1 (dated April 2006) misfired when inside buildings in Balmora. Issue cropped up in Outfitter and in Mage's guild, haven't checked others. Top floor, you are fine. Ground floor, the mod slams you with its underwater burden effect.

Obviously, the script function that reads the cell's water level does it incorrectly or from a wrong cell.

P.S. The revision reports itself as "47d789004b" it crops here for some reason.

## Steps to Reproduce

1. Open the game
2. Start a new game
3. Open console - right in the starting prison ship
4. Type GetWaterLevel. The original Morrowind executable would print 0.00 but OpenMW prints a ridiculous 40-digit number -3402823466385288599811704183484516925440.000000. The value is the same for all interior cells I tested (and they all give 0.00 in the original). OpenMW works correctly for the exterior cells giving 0.00

## System Information

* **OpenMW Version:**

0.50.0 revision 47d78e004b
* **Operating System & Version:**
* **GPU:**
* **Morrowind Version:**

Shrouded in Russian bootleg companies of early 2000s
* **Language:**

English
* **Addons:**

Tribunal, Bloodmon

## Mods

* **Are you using mods?** Yes
* **Are you using any shader mods?** No
* **Does it happen in a clean vanilla install?** Untested

## Logs and Settings

<!--Please attach your openmw.log and settings.cfg files.
If the issue is graphical or location-based, please paste the output of the 'bc' command below.
(Open console with ` -> Click object -> type 'bc')-->