From: Calinou Date: Wed, 28 Nov 2012 10:59:19 +0000 (+0100) Subject: Fix head shifting downards in glass, nodeboxes... X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=655bb526f48a147808eefe47fde38adae88e1915;p=zefram%2Fminetest%2Fminetest_engine.git Fix head shifting downards in glass, nodeboxes... --- diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 63400cc2..17c4cdeb 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -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; } }