Fix for detection of sharking that I broke (water level <= waist level, not < waist level)

This commit is contained in:
squeek 2013-10-29 02:59:54 +00:00
parent 9818913608
commit 2b4a3ce44b

View file

@ -1456,7 +1456,7 @@ void CGameMovement::WaterMove( void )
if (speed)
{
// FF --> Different water frictions for jump key held (sharking) vs not
bool bIsSharking = player->GetWaterLevel() < WL_Waist && mv->m_nButtons & IN_JUMP;
bool bIsSharking = player->GetWaterLevel() <= WL_Waist && mv->m_nButtons & IN_JUMP;
float flWaterFriction = bIsSharking ? SV_SHARKINGFRICTION : sv_friction.GetFloat();
// FF <--