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/Entity.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Entities/Entity.h') diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h index ae150b4e2..91ad524c7 100644 --- a/src/Entities/Entity.h +++ b/src/Entities/Entity.h @@ -681,7 +681,7 @@ protected: /** Set the entities position and last sent position. Only to be used when the caller will broadcast a teleport or equivalent to clients. */ - void ResetPosition(Vector3d a_NewPos); + virtual void ResetPosition(Vector3d a_NewPos); private: -- cgit v1.2.3