mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +00:00
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:
@@ -150,8 +150,7 @@ namespace VMAP
|
|||||||
if (info.hitModel->GetLiquidLevel(pModel, zDist))
|
if (info.hitModel->GetLiquidLevel(pModel, zDist))
|
||||||
{
|
{
|
||||||
// calculate world height (zDist in model coords):
|
// calculate world height (zDist in model coords):
|
||||||
// assume WMO not tilted (wouldn't make much sense anyway)
|
liqHeight = (Vector3(pModel.x, pModel.y, zDist) * iInvRot * iScale + iPos).z;
|
||||||
liqHeight = zDist * iScale + iPos.z;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user