aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-07-21 15:40:00 +0200
committerNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-07-21 15:40:00 +0200
commitcbf2ac5e8f3b4043b1eaeca0a3260b2c90b85be6 (patch)
treea93bf0e8594b7fb5c39c6117479cc9d840559a52 /src
parentbca3de3d0847bd5b27436dbe9cc580def837c4e0 (diff)
downloadminetest-cbf2ac5e8f3b4043b1eaeca0a3260b2c90b85be6.tar.gz
minetest-cbf2ac5e8f3b4043b1eaeca0a3260b2c90b85be6.tar.bz2
minetest-cbf2ac5e8f3b4043b1eaeca0a3260b2c90b85be6.zip
* different collision box for fireflies so they now hover above the ground
Diffstat (limited to 'src')
-rw-r--r--src/content_sao.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content_sao.cpp b/src/content_sao.cpp
index aeeafc2f8..0b81855c1 100644
--- a/src/content_sao.cpp
+++ b/src/content_sao.cpp
@@ -809,7 +809,7 @@ void FireflySAO::step(float dtime, bool send_recommended)
Move it, with collision detection
*/
- core::aabbox3d<f32> box(-BS/3.,0.0,-BS/3., BS/3.,BS*2./3.,BS/3.);
+ core::aabbox3d<f32> box(-BS/3.,-BS*2/3.0,-BS/3., BS/3.,BS*4./3.,BS/3.);
collisionMoveResult moveresult;
// Maximum movement without glitches
f32 pos_max_d = BS*0.25;