diff options
author | SmallJoker <mk939@ymail.com> | 2019-11-27 20:36:51 +0100 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2019-12-07 15:12:26 +0100 |
commit | aa8df112ff42d94b6dc59a0153d989bd8c0b115e (patch) | |
tree | 3488aea2ccd10228740d810f9a34da2260c95a57 /src/client/clientobject.h | |
parent | 51f230895c2b6d99a6fddc1c235140fcf9938742 (diff) | |
download | minetest-aa8df112ff42d94b6dc59a0153d989bd8c0b115e.tar.gz minetest-aa8df112ff42d94b6dc59a0153d989bd8c0b115e.tar.bz2 minetest-aa8df112ff42d94b6dc59a0153d989bd8c0b115e.zip |
Attachments: Fix interpolation from (0,0,0) after detach
GenericCAO::getPosition() did not take the camera offset into account
LocalPlayer attachment cleanup: Use sane getParent() function
Make that getPosition() (GenericCAO and LocalPlayer) always return the absolute position
Diffstat (limited to 'src/client/clientobject.h')
-rw-r--r-- | src/client/clientobject.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/clientobject.h b/src/client/clientobject.h index c673fff9a..12e0db35b 100644 --- a/src/client/clientobject.h +++ b/src/client/clientobject.h @@ -49,8 +49,10 @@ public: virtual bool getSelectionBox(aabb3f *toset) const { return false; } virtual bool collideWithObjects() const { return false; } virtual const v3f getPosition() const { return v3f(0.0f); } - virtual scene::ISceneNode *getSceneNode() { return NULL; } - virtual scene::IAnimatedMeshSceneNode *getAnimatedMeshSceneNode() { return NULL; } + virtual scene::ISceneNode *getSceneNode() const + { return NULL; } + virtual scene::IAnimatedMeshSceneNode *getAnimatedMeshSceneNode() const + { return NULL; } virtual bool isLocalPlayer() const { return false; } virtual ClientActiveObject *getParent() const { return nullptr; }; |