mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
Water corrections
This commit is contained in:
parent
4d07ae7fe0
commit
00260a24ce
@ -1730,6 +1730,7 @@ void PM_SetWaterLevel( playerMove* const pm )
|
||||
pm->ps.waterlevel = WL_ANKLE;
|
||||
//point[2] = pm->ps->origin[2] + 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 );
|
||||
//if ( cont & MASK_WATER )
|
||||
if (checkWater)
|
||||
@ -1739,6 +1740,7 @@ void PM_SetWaterLevel( playerMove* const pm )
|
||||
point.z = pm->ps.origin.z + MINS_Z + sample2;
|
||||
//cont = pm->pointcontents (point, pm->ps->clientNum );
|
||||
//if ( cont & MASK_WATER )
|
||||
checkWater = (pml.hasWater && pml.waterHeight > point.z);
|
||||
if (checkWater )
|
||||
pm->ps.waterlevel = WL_UNDERWATER;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user