diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-04-01 16:06:01 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-04-01 16:06:01 +0300 |
commit | f0e7da8a63d858f3b511872cf41cde0eaff6585d (patch) | |
tree | 5586e6807b2fc442db9ee99191caf38b7b77d207 /src/content_cao.cpp | |
parent | 5bd32eca0f4c8afa8d933f7d7d1946cabaa8dc43 (diff) | |
download | minetest-f0e7da8a63d858f3b511872cf41cde0eaff6585d.tar.gz minetest-f0e7da8a63d858f3b511872cf41cde0eaff6585d.tar.bz2 minetest-f0e7da8a63d858f3b511872cf41cde0eaff6585d.zip |
Implement dropped items as LuaEntities; leave the old ones as is for compatibility
Diffstat (limited to 'src/content_cao.cpp')
-rw-r--r-- | src/content_cao.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp index 2a9c8a91a..1241e0002 100644 --- a/src/content_cao.cpp +++ b/src/content_cao.cpp @@ -1068,6 +1068,11 @@ public: bool do_interpolate = readU8(is); bool is_end_position = readU8(is); float update_interval = readF1000(is); + + // Place us a bit higher if we're physical, to not sink into + // the ground due to sucky collision detection... + if(m_prop.physical) + m_position += v3f(0,0.002,0); if(do_interpolate){ if(!m_prop.physical) |