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

Closes #30205
This commit is contained in:
Shauren
2024-11-28 17:08:56 +01:00
parent 5c7f9a57c7
commit 53b4501ce9

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;