summaryrefslogtreecommitdiff
path: root/src/client/content_cao.h
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2019-11-27 20:36:51 +0100
committerSmallJoker <SmallJoker@users.noreply.github.com>2019-12-07 15:12:26 +0100
commitaa8df112ff42d94b6dc59a0153d989bd8c0b115e (patch)
tree3488aea2ccd10228740d810f9a34da2260c95a57 /src/client/content_cao.h
parent51f230895c2b6d99a6fddc1c235140fcf9938742 (diff)
downloadminetest-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/content_cao.h')
-rw-r--r--src/client/content_cao.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/content_cao.h b/src/client/content_cao.h
index 2c2d11077..6f3b2f06b 100644
--- a/src/client/content_cao.h
+++ b/src/client/content_cao.h
@@ -165,9 +165,9 @@ public:
const bool isImmortal();
- scene::ISceneNode *getSceneNode();
+ scene::ISceneNode *getSceneNode() const;
- scene::IAnimatedMeshSceneNode *getAnimatedMeshSceneNode();
+ scene::IAnimatedMeshSceneNode *getAnimatedMeshSceneNode() const;
// m_matrixnode controls the position and rotation of the child node
// for all scene nodes, as a workaround for an Irrlicht problem with