diff options
author | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2011-05-31 08:56:23 +0800 |
---|---|---|
committer | TeddyDesTodes <gravedigger@lebendigbegraben.de> | 2011-06-01 20:06:16 +0800 |
commit | 9de57d13bc7a97fba17da5807e1ef57d96586deb (patch) | |
tree | e52d97880d5b8d9e42acb0a41dea435fa014e2cc | |
parent | 876553220fba89092864f43bafac44f91e71c743 (diff) | |
download | minetest-9de57d13bc7a97fba17da5807e1ef57d96586deb.tar.gz minetest-9de57d13bc7a97fba17da5807e1ef57d96586deb.tar.bz2 minetest-9de57d13bc7a97fba17da5807e1ef57d96586deb.zip |
* improved fence dimensions (cuboid side lengths now multiples of 2, textures should fit better)
-rw-r--r-- | src/mapblock.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mapblock.cpp b/src/mapblock.cpp index c448ef236..d98bfaf1e 100644 --- a/src/mapblock.cpp +++ b/src/mapblock.cpp @@ -1563,8 +1563,8 @@ scene::SMesh* makeMapBlockMesh(MeshMakeData *data) u8 l = decode_light(undiminish_light(n.getLightBlend(data->m_daynight_ratio))); video::SColor c(255,l,l,l); - const f32 post_rad=(f32)BS/10; - const f32 bar_rad=(f32)BS/20; + const f32 post_rad=(f32)BS/(32.0/4.0); + const f32 bar_rad=(f32)BS/(32.0/2.0); const f32 bar_len=(f32)(BS/2)-post_rad; // The post - always present @@ -1581,12 +1581,12 @@ scene::SMesh* makeMapBlockMesh(MeshMakeData *data) { pos = intToFloat(p+blockpos_nodes, BS); pos.X += BS/2; - pos.Y += BS/4; + pos.Y += 3*bar_rad; makeCuboid(material_wood, &collector, &pa_wood, c, pos, bar_len,bar_rad,bar_rad); - pos.Y -= BS/2; + pos.Y -= 6*bar_rad; makeCuboid(material_wood, &collector, &pa_wood, c, pos, bar_len,bar_rad,bar_rad); @@ -1600,11 +1600,11 @@ scene::SMesh* makeMapBlockMesh(MeshMakeData *data) { pos = intToFloat(p+blockpos_nodes, BS); pos.Z += BS/2; - pos.Y += BS/4; + pos.Y += 3*bar_rad; makeCuboid(material_wood, &collector, &pa_wood, c, pos, bar_rad,bar_rad,bar_len); - pos.Y -= BS/2; + pos.Y -= 6*bar_rad; makeCuboid(material_wood, &collector, &pa_wood, c, pos, bar_rad,bar_rad,bar_len); |