Fixed server forcing players afloat

* Fixes #1131
master
Tiger Wang 2014-06-27 23:13:26 +01:00
parent 9926abd4f5
commit b6df30831d
1 changed files with 4 additions and 1 deletions

View File

@ -1090,7 +1090,10 @@ void cEntity::HandleAir(void)
if (IsSubmerged()) if (IsSubmerged())
{ {
SetSpeedY(1); // Float in the water if (!IsPlayer()) // Players control themselves
{
SetSpeedY(1); // Float in the water
}
// Either reduce air level or damage player // Either reduce air level or damage player
if (m_AirLevel < 1) if (m_AirLevel < 1)