summaryrefslogtreecommitdiff
path: root/src/content_mapnode.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-14 22:57:58 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:42 +0200
commite9620d9c8ca194a8cdac9e9b0ae32d67f3cf5cc2 (patch)
treefd37fe8c695cff362fe256cdca1c63dc9e9d32dd /src/content_mapnode.cpp
parentde51f87e0591ecfc03f943c948ed8e476046b34c (diff)
downloadminetest-e9620d9c8ca194a8cdac9e9b0ae32d67f3cf5cc2.tar.gz
minetest-e9620d9c8ca194a8cdac9e9b0ae32d67f3cf5cc2.tar.bz2
minetest-e9620d9c8ca194a8cdac9e9b0ae32d67f3cf5cc2.zip
Make fence post selection box smaller and create code to allow node placement to the side of a static box
Diffstat (limited to 'src/content_mapnode.cpp')
-rw-r--r--src/content_mapnode.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/content_mapnode.cpp b/src/content_mapnode.cpp
index eb7ca6689..d9b5d6e26 100644
--- a/src/content_mapnode.cpp
+++ b/src/content_mapnode.cpp
@@ -375,6 +375,9 @@ void content_mapnode_init(ITextureSource *tsrc, IWritableNodeDefManager *nodemgr
f->air_equivalent = true; // grass grows underneath
f->setInventoryTexture("fence.png", tsrc);
f->used_texturenames.insert("fence.png"); // Add to atlas
+ f->selection_box.type = NODEBOX_FIXED;
+ f->selection_box.fixed = core::aabbox3d<f32>(
+ -BS/7, -BS/2, -BS/7, BS/7, BS/2, BS/7);
setWoodLikeMaterialProperties(f->material, 0.75);
i = CONTENT_RAIL;