diff options
author | sapier <Sapier at GMX dot net> | 2013-04-17 00:15:53 +0200 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-04-25 18:53:50 +0200 |
commit | 88ffb3f73bb16c6680ee10a8e804a699e366edd8 (patch) | |
tree | 991091a87b4e588c847f14fea7d181560667caa5 /src/content_sao.cpp | |
parent | 386108f982e3d0819f6a153d750f967c0b25268c (diff) | |
download | hax-minetest-server-88ffb3f73bb16c6680ee10a8e804a699e366edd8.tar.gz hax-minetest-server-88ffb3f73bb16c6680ee10a8e804a699e366edd8.zip |
Move player collisionbox to player class
Diffstat (limited to 'src/content_sao.cpp')
-rw-r--r-- | src/content_sao.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/content_sao.cpp b/src/content_sao.cpp index 3526ecbd2..24a9186f7 100644 --- a/src/content_sao.cpp +++ b/src/content_sao.cpp @@ -1472,6 +1472,11 @@ std::string PlayerSAO::getPropertyPacket() } bool PlayerSAO::getCollisionBox(aabb3f *toset) { - //player collision handling is already done clientside no need to do it twice - return false; + //update collision box + *toset = m_player->getCollisionbox(); + + toset->MinEdge += m_base_position; + toset->MaxEdge += m_base_position; + + return true; } |