summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2017-01-11 09:03:07 +0100
committerNer'zhul <nerzhul@users.noreply.github.com>2017-01-11 15:53:56 +0100
commit430d3b28e46b16e1411ec0ecb6c0d0ab9d6feb63 (patch)
tree48d1db92e3ded542a8088da3fef17f83c17eeb2a /src/localplayer.h
parent66479394037baa941cb06d75d3afc79ff4c717a2 (diff)
downloadminetest-430d3b28e46b16e1411ec0ecb6c0d0ab9d6feb63.tar.gz
minetest-430d3b28e46b16e1411ec0ecb6c0d0ab9d6feb63.tar.bz2
minetest-430d3b28e46b16e1411ec0ecb6c0d0ab9d6feb63.zip
Cleanup some header inclusions to improve compilation times
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/localplayer.h b/src/localplayer.h
index cbdcb9867..685a78cb3 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -105,10 +105,7 @@ public:
u16 getBreath() const { return m_breath; }
void setBreath(u16 breath) { m_breath = breath; }
- v3s16 getLightPosition() const
- {
- return floatToInt(m_position + v3f(0,BS+BS/2,0), BS);
- }
+ v3s16 getLightPosition() const;
void setYaw(f32 yaw)
{
@@ -131,11 +128,7 @@ public:
v3f getPosition() const { return m_position; }
v3f getEyePosition() const { return m_position + getEyeOffset(); }
- v3f getEyeOffset() const
- {
- float eye_height = camera_barely_in_ceiling ? 1.5f : 1.625f;
- return v3f(0, BS * eye_height, 0);
- }
+ v3f getEyeOffset() const;
private:
void accelerateHorizontal(const v3f &target_speed, const f32 max_increase);
void accelerateVertical(const v3f &target_speed, const f32 max_increase);