mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:53:50 +00:00
Water corrections
This commit is contained in:
parent
4d07ae7fe0
commit
00260a24ce
1 changed files with 2 additions and 0 deletions
|
@ -1730,6 +1730,7 @@ void PM_SetWaterLevel( playerMove* const pm )
|
||||||
pm->ps.waterlevel = WL_ANKLE;
|
pm->ps.waterlevel = WL_ANKLE;
|
||||||
//point[2] = pm->ps->origin[2] + MINS_Z + sample1;
|
//point[2] = pm->ps->origin[2] + MINS_Z + sample1;
|
||||||
point.z = pm->ps.origin.z + MINS_Z + sample1;
|
point.z = pm->ps.origin.z + MINS_Z + sample1;
|
||||||
|
checkWater = (pml.hasWater && pml.waterHeight > point.z);
|
||||||
//cont = pm->pointcontents (point, pm->ps->clientNum );
|
//cont = pm->pointcontents (point, pm->ps->clientNum );
|
||||||
//if ( cont & MASK_WATER )
|
//if ( cont & MASK_WATER )
|
||||||
if (checkWater)
|
if (checkWater)
|
||||||
|
@ -1739,6 +1740,7 @@ void PM_SetWaterLevel( playerMove* const pm )
|
||||||
point.z = pm->ps.origin.z + MINS_Z + sample2;
|
point.z = pm->ps.origin.z + MINS_Z + sample2;
|
||||||
//cont = pm->pointcontents (point, pm->ps->clientNum );
|
//cont = pm->pointcontents (point, pm->ps->clientNum );
|
||||||
//if ( cont & MASK_WATER )
|
//if ( cont & MASK_WATER )
|
||||||
|
checkWater = (pml.hasWater && pml.waterHeight > point.z);
|
||||||
if (checkWater )
|
if (checkWater )
|
||||||
pm->ps.waterlevel = WL_UNDERWATER;
|
pm->ps.waterlevel = WL_UNDERWATER;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue