Skip to content

Commit c0d8dba

Browse files
committed
Core/Vmaps: Don't ignore model rotation when calculating liquid level
Closes #30205 (cherry picked from commit 53b4501ce9b072cfffe7de7f348094f443e36950)
1 parent 31f5866 commit c0d8dba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/common/Collision/Models/ModelInstance.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ namespace VMAP
112112
if (info.hitModel->GetLiquidLevel(pModel, zDist))
113113
{
114114
// calculate world height (zDist in model coords):
115-
// assume WMO not tilted (wouldn't make much sense anyway)
116-
liqHeight = zDist * iScale + iPos.z;
115+
liqHeight = (Vector3(pModel.x, pModel.y, zDist) * iInvRot * iScale + iPos).z;
117116
return true;
118117
}
119118
return false;

0 commit comments

Comments
 (0)