Skip to content

Commit 61088b1

Browse files
committedJul 17, 2014
Fix texture hack in fences.
1 parent d38f6eb commit 61088b1

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed
 

‎src/content_mapblock.cpp

+4-9
Original file line numberDiff line numberDiff line change
@@ -1143,16 +1143,11 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
11431143
TileSpec tile = getNodeTile(n, p, v3s16(0,0,0), data);
11441144
TileSpec tile_nocrack = tile;
11451145
tile_nocrack.material_flags &= ~MATERIAL_FLAG_CRACK;
1146-
1147-
// A hack to put wood the right way around in the posts
1148-
ITextureSource *tsrc = data->m_gamedef->tsrc();
1149-
std::string texturestring_rot = tsrc->getTextureName(
1150-
tile.texture_id) + "^[transformR90";
1146+
1147+
// Put wood the right way around in the posts
11511148
TileSpec tile_rot = tile;
1152-
tile_rot.texture = tsrc->getTexture(
1153-
texturestring_rot,
1154-
&tile_rot.texture_id);
1155-
1149+
tile_rot.rotation = 1;
1150+
11561151
u16 l = getInteriorLight(n, 1, nodedef);
11571152
video::SColor c = MapBlock_LightColor(255, l, decode_light(f.light_source));
11581153

0 commit comments

Comments
 (0)
Please sign in to comment.