From e27290f7d2d1a9fb0c8e77b73bb6634a43c45d4c Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Mon, 23 Jul 2018 17:26:48 +0100 Subject: cPawn: Reset last ground height in ResetPosition (#4261) Prevents fall damage after teleporting/portaling to a lower height. Fixes #3457 --- src/Entities/Pawn.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Entities/Pawn.h') diff --git a/src/Entities/Pawn.h b/src/Entities/Pawn.h index 480b523ea..4de0e14b2 100644 --- a/src/Entities/Pawn.h +++ b/src/Entities/Pawn.h @@ -77,6 +77,8 @@ protected: double m_LastGroundHeight; bool m_bTouchGround; + virtual void ResetPosition(Vector3d a_NewPosition) override; + private: /** A list of all monsters that are targeting this pawn. */ -- cgit v1.2.3