From a1c48f4853b234e920e96671c4ff218567d4f2d4 Mon Sep 17 00:00:00 2001 From: Marvin Kopf Date: Tue, 2 Feb 2016 14:44:10 +0100 Subject: Fix cPawn pushing cPawn instances can no longer push an entity they are attached to. cEntity now has a IsAttachedTo method. --- src/Entities/Entity.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Entities/Entity.h') diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h index 3715fb5c4..dbfc019e7 100644 --- a/src/Entities/Entity.h +++ b/src/Entities/Entity.h @@ -423,6 +423,9 @@ public: /** Detaches from the currently attached entity, if any */ virtual void Detach(void); + /** Returns true if this entity is attached to the specified entity */ + bool IsAttachedTo(const cEntity * a_Entity) const; + /** Makes sure head yaw is not over the specified range. */ void WrapHeadYaw(); -- cgit v1.2.3