diff options
author | Auke Kok <sofar@foo-projects.org> | 2016-03-14 23:20:56 -0700 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2016-03-21 17:42:20 +0000 |
commit | 80cec4702dde598ded6a5b31e291d2973b26cc7b (patch) | |
tree | 5f6e8f3c116f63bbde0bf4f50a7015556cab0d2f /src/mapnode.cpp | |
parent | 493a298c0c94d03cdcdb4a52684094f88cbd48c5 (diff) | |
download | hax-minetest-server-80cec4702dde598ded6a5b31e291d2973b26cc7b.tar.gz hax-minetest-server-80cec4702dde598ded6a5b31e291d2973b26cc7b.zip |
Fix connected nodes' selection boxes.
This allows the player to more easily target and punch connected
nodeboxes, especially if they have a fixed nodebox that is very
small, like technic cabling, or xpanes. Tried it on fences and
my xpane conversion, and happy with the result.
Diffstat (limited to 'src/mapnode.cpp')
-rw-r--r-- | src/mapnode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapnode.cpp b/src/mapnode.cpp index a54658873..eba47446d 100644 --- a/src/mapnode.cpp +++ b/src/mapnode.cpp @@ -456,10 +456,10 @@ void MapNode::getCollisionBoxes(INodeDefManager *nodemgr, std::vector<aabb3f> *b transformNodeBox(*this, f.collision_box, nodemgr, boxes, neighbors); } -void MapNode::getSelectionBoxes(INodeDefManager *nodemgr, std::vector<aabb3f> *boxes) +void MapNode::getSelectionBoxes(INodeDefManager *nodemgr, std::vector<aabb3f> *boxes, u8 neighbors) { const ContentFeatures &f = nodemgr->get(*this); - transformNodeBox(*this, f.selection_box, nodemgr, boxes); + transformNodeBox(*this, f.selection_box, nodemgr, boxes, neighbors); } u8 MapNode::getMaxLevel(INodeDefManager *nodemgr) const |