From 80cec4702dde598ded6a5b31e291d2973b26cc7b Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Mon, 14 Mar 2016 23:20:56 -0700 Subject: 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. --- src/mapnode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mapnode.cpp') 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 *b transformNodeBox(*this, f.collision_box, nodemgr, boxes, neighbors); } -void MapNode::getSelectionBoxes(INodeDefManager *nodemgr, std::vector *boxes) +void MapNode::getSelectionBoxes(INodeDefManager *nodemgr, std::vector *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 -- cgit v1.2.3