aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstujones11 <stujones111@gmail.com>2017-08-23 13:18:44 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-08-23 14:18:44 +0200
commitd01b65abebf3b2e86d076c6b69996fd3a205a960 (patch)
tree22b4a40772e6ec5e248bb6c20c00cfd534b932e9
parente2a6b7c8d29a674504f80b7948a71c4a36af4ad0 (diff)
downloadminetest-d01b65abebf3b2e86d076c6b69996fd3a205a960.tar.gz
minetest-d01b65abebf3b2e86d076c6b69996fd3a205a960.tar.bz2
minetest-d01b65abebf3b2e86d076c6b69996fd3a205a960.zip
Do not add base position to player selection box (#6241)
-rw-r--r--src/content_sao.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content_sao.cpp b/src/content_sao.cpp
index bbd30627a..621a64de0 100644
--- a/src/content_sao.cpp
+++ b/src/content_sao.cpp
@@ -1430,7 +1430,8 @@ bool PlayerSAO::getSelectionBox(aabb3f *toset) const
return false;
}
- getCollisionBox(toset);
+ toset->MinEdge = m_prop.collisionbox.MinEdge * BS;
+ toset->MaxEdge = m_prop.collisionbox.MaxEdge * BS;
return true;
}