diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-15 21:00:39 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:44 +0200 |
commit | ba762bcd49c9f3ffa3cc4ecac73b13365c2047ec (patch) | |
tree | 434f3a74df5dd382434df5b655fee7843e45e004 /src/player.cpp | |
parent | 6da8cb00e27106221e013aa6d93965b95e630a18 (diff) | |
download | minetest-ba762bcd49c9f3ffa3cc4ecac73b13365c2047ec.tar.gz minetest-ba762bcd49c9f3ffa3cc4ecac73b13365c2047ec.tar.bz2 minetest-ba762bcd49c9f3ffa3cc4ecac73b13365c2047ec.zip |
Clean mapnode.h and fix other files accordingly
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/player.cpp b/src/player.cpp index 8e73f3501..4dc7ff219 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -108,6 +108,11 @@ void Player::accelerate(v3f target_speed, f32 max_increase) #endif } +v3s16 Player::getLightPosition() const +{ + return floatToInt(m_position + v3f(0,BS+BS/2,0), BS); +} + void Player::serialize(std::ostream &os) { // Utilize a Settings object for storing values |