From e9620d9c8ca194a8cdac9e9b0ae32d67f3cf5cc2 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 14 Nov 2011 22:57:58 +0200 Subject: Make fence post selection box smaller and create code to allow node placement to the side of a static box --- src/content_mapnode.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/content_mapnode.cpp') 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( + -BS/7, -BS/2, -BS/7, BS/7, BS/2, BS/7); setWoodLikeMaterialProperties(f->material, 0.75); i = CONTENT_RAIL; -- cgit v1.2.3