mirror of
https://github.com/fortressforever/fortressforever-2013.git
synced 2024-11-10 15:22:21 +00:00
Fix for detection of sharking that I broke (water level <= waist level, not < waist level)
This commit is contained in:
parent
9818913608
commit
2b4a3ce44b
1 changed files with 1 additions and 1 deletions
|
@ -1456,7 +1456,7 @@ void CGameMovement::WaterMove( void )
|
||||||
if (speed)
|
if (speed)
|
||||||
{
|
{
|
||||||
// FF --> Different water frictions for jump key held (sharking) vs not
|
// 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();
|
float flWaterFriction = bIsSharking ? SV_SHARKINGFRICTION : sv_friction.GetFloat();
|
||||||
// FF <--
|
// FF <--
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue