Fix head shifting downards in glass, nodeboxes...

This commit is contained in:
Calinou 2012-11-28 11:59:19 +01:00
parent 5c26972cdd
commit 8e4107cd5f
1 changed files with 1 additions and 1 deletions

View 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;
}
}