fix(Core/Vmaps): Do not ignore model rotation when calculating liquid level (#20760)

cherry-picked from:
53b4501ce9

Co-authored-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
Jelle Meeus
2024-12-01 21:09:47 +01:00
committed by GitHub
parent cf7959238a
commit 2d616ce0e8

View File

@@ -150,8 +150,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;