Core/Vmaps: Don't ignore model rotation when calculating liquid level

Closes #30205

(cherry picked from commit 53b4501ce9)
This commit is contained in:
Shauren
2024-11-28 17:08:56 +01:00
committed by Ovahlord
parent c9a7934b28
commit 4dedfcfe90

View File

@@ -112,8 +112,7 @@ namespace VMAP
if (info.hitModel->GetLiquidLevel(pModel, zDist))
{
// calculate world height (zDist in model coords):
// assume WMO not tilted (wouldn't make much sense anyway)
liqHeight = zDist * iScale + iPos.z;
liqHeight = (Vector3(pModel.x, pModel.y, zDist) * iInvRot * iScale + iPos).z;
return true;
}
return false;