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.h | |
parent | 493a298c0c94d03cdcdb4a52684094f88cbd48c5 (diff) | |
download | minetest-80cec4702dde598ded6a5b31e291d2973b26cc7b.tar.gz minetest-80cec4702dde598ded6a5b31e291d2973b26cc7b.tar.bz2 minetest-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.h')
-rw-r--r-- | src/mapnode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapnode.h b/src/mapnode.h index 4db888616..2f6224f02 100644 --- a/src/mapnode.h +++ b/src/mapnode.h @@ -245,7 +245,7 @@ struct MapNode /* Gets list of selection boxes */ - void getSelectionBoxes(INodeDefManager *nodemg, std::vector<aabb3f> *boxes); + void getSelectionBoxes(INodeDefManager *nodemg, std::vector<aabb3f> *boxes, u8 neighbors = 0); /* Gets list of collision boxes |