diff options
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/player.h b/src/player.h index b91c3cb1b..00a1d4408 100644 --- a/src/player.h +++ b/src/player.h @@ -62,6 +62,11 @@ public: return m_position; } + v3s16 getLightPosition() const + { + return floatToInt(m_position + v3f(0,BS+BS/2,0), BS); + } + virtual void setPosition(const v3f &position) { m_position = position; |