Merge remote-tracking branch 'origin/master' into potions
Conflicts: src/Entities/Player.cpp src/Entities/ProjectileEntity.cpp
This commit is contained in:
@@ -1092,7 +1092,10 @@ void cEntity::HandleAir(void)
|
||||
|
||||
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
|
||||
if (m_AirLevel < 1)
|
||||
@@ -1478,8 +1481,7 @@ void cEntity::SetWidth(double a_Width)
|
||||
|
||||
void cEntity::AddPosX(double a_AddPosX)
|
||||
{
|
||||
m_Pos.x += a_AddPosX;
|
||||
|
||||
m_Pos.x += a_AddPosX;
|
||||
}
|
||||
|
||||
|
||||
@@ -1487,8 +1489,7 @@ void cEntity::AddPosX(double a_AddPosX)
|
||||
|
||||
void cEntity::AddPosY(double a_AddPosY)
|
||||
{
|
||||
m_Pos.y += a_AddPosY;
|
||||
|
||||
m_Pos.y += a_AddPosY;
|
||||
}
|
||||
|
||||
|
||||
@@ -1496,8 +1497,7 @@ void cEntity::AddPosY(double a_AddPosY)
|
||||
|
||||
void cEntity::AddPosZ(double a_AddPosZ)
|
||||
{
|
||||
m_Pos.z += a_AddPosZ;
|
||||
|
||||
m_Pos.z += a_AddPosZ;
|
||||
}
|
||||
|
||||
|
||||
@@ -1507,8 +1507,7 @@ void cEntity::AddPosition(double a_AddPosX, double a_AddPosY, double a_AddPosZ)
|
||||
{
|
||||
m_Pos.x += a_AddPosX;
|
||||
m_Pos.y += a_AddPosY;
|
||||
m_Pos.z += a_AddPosZ;
|
||||
|
||||
m_Pos.z += a_AddPosZ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user