summaryrefslogtreecommitdiff
path: root/src/content_mapblock.cpp
diff options
context:
space:
mode:
authorRealBadAngel <maciej.kasatkin@o2.pl>2014-07-17 13:37:18 +0200
committerRealBadAngel <maciej.kasatkin@o2.pl>2014-07-17 13:37:18 +0200
commit61088b16c949b5c546a409720615c3d77195f9d2 (patch)
tree3ae9b2c2856553b23c2b702d94ef0263df4e14ac /src/content_mapblock.cpp
parentd38f6ebb9bb9ff201b3a1e19a8e6ad311dbe4972 (diff)
downloadminetest-61088b16c949b5c546a409720615c3d77195f9d2.tar.gz
minetest-61088b16c949b5c546a409720615c3d77195f9d2.tar.bz2
minetest-61088b16c949b5c546a409720615c3d77195f9d2.zip
Fix texture hack in fences.
Diffstat (limited to 'src/content_mapblock.cpp')
-rw-r--r--src/content_mapblock.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/content_mapblock.cpp b/src/content_mapblock.cpp
index 9cdf426be..ffdb5ad08 100644
--- a/src/content_mapblock.cpp
+++ b/src/content_mapblock.cpp
@@ -1143,16 +1143,11 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
TileSpec tile = getNodeTile(n, p, v3s16(0,0,0), data);
TileSpec tile_nocrack = tile;
tile_nocrack.material_flags &= ~MATERIAL_FLAG_CRACK;
-
- // A hack to put wood the right way around in the posts
- ITextureSource *tsrc = data->m_gamedef->tsrc();
- std::string texturestring_rot = tsrc->getTextureName(
- tile.texture_id) + "^[transformR90";
+
+ // Put wood the right way around in the posts
TileSpec tile_rot = tile;
- tile_rot.texture = tsrc->getTexture(
- texturestring_rot,
- &tile_rot.texture_id);
-
+ tile_rot.rotation = 1;
+
u16 l = getInteriorLight(n, 1, nodedef);
video::SColor c = MapBlock_LightColor(255, l, decode_light(f.light_source));