Fix head shifting downards in glass, nodeboxes...
authorCalinou <calinou9999spam@gmail.com>
Wed, 28 Nov 2012 10:59:19 +0000 (11:59 +0100)
committerIlya Zhuravlev <zhuravlevilya@ya.ru>
Wed, 28 Nov 2012 12:14:52 +0000 (16:14 +0400)
src/localplayer.cpp

index 63400cc298cd156d60151488ff3f7b78f95d4c47..17c4cdeb9904d98fa4d3cfa19c5657976107ced6 100644 (file)
@@ -323,7 +323,7 @@ void LocalPlayer::move(f32 dtime, Map &map, f32 pos_max_d,
                v3s16 camera_np = floatToInt(getEyePosition(), BS);
                MapNode n = map.getNodeNoEx(camera_np);
                if(n.getContent() != CONTENT_IGNORE){
-                       if(nodemgr->get(n).walkable){
+                       if(nodemgr->get(n).walkable && nodemgr->get(n).solidness == 2){
                                camera_barely_in_ceiling = true;
                        }
                }