parent
9926abd4f5
commit
b6df30831d
|
@ -1089,8 +1089,11 @@ void cEntity::HandleAir(void)
|
||||||
// Get the type of block the entity is standing in:
|
// Get the type of block the entity is standing in:
|
||||||
|
|
||||||
if (IsSubmerged())
|
if (IsSubmerged())
|
||||||
|
{
|
||||||
|
if (!IsPlayer()) // Players control themselves
|
||||||
{
|
{
|
||||||
SetSpeedY(1); // Float in the water
|
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)
|
||||||
|
|
Loading…
Reference in New Issue