1
0

Fixed death on teleportation or leaving Minecart (#3181)

This commit is contained in:
LogicParrot
2016-05-03 10:48:39 +03:00
parent adac9cb68e
commit b3d4e0fca6
4 changed files with 32 additions and 6 deletions

View File

@@ -250,6 +250,24 @@ void cPawn::TargetingMe(cMonster * a_Monster)
void cPawn::SetPosition(double a_PosX, double a_PosY, double a_PosZ)
{
SetPosition({a_PosX, a_PosY, a_PosZ});
}
void cPawn::SetPosition(const Vector3d & a_Position)
{
super::SetPosition(a_Position);
m_LastGroundHeight = a_Position.y; // Prevent fall damage on teleport
}
void cPawn::HandleFalling(void)
{