summaryrefslogtreecommitdiff
path: root/src/content_mapblock.cpp
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-11-19 16:17:54 -0500
committerShadowNinja <shadowninja@minetest.net>2014-11-19 16:17:54 -0500
commitda0f1e5497c7dece9ff5092adfb5881b0dd2e10c (patch)
tree0461f21f57c2b985b7d91e490756a192491f9163 /src/content_mapblock.cpp
parenta6ba042cf792d29cda4f7f7924a68a017d9b0335 (diff)
downloadminetest-da0f1e5497c7dece9ff5092adfb5881b0dd2e10c.tar.gz
minetest-da0f1e5497c7dece9ff5092adfb5881b0dd2e10c.tar.bz2
minetest-da0f1e5497c7dece9ff5092adfb5881b0dd2e10c.zip
Fix wallmounted mesh rotations
Diffstat (limited to 'src/content_mapblock.cpp')
-rw-r--r--src/content_mapblock.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content_mapblock.cpp b/src/content_mapblock.cpp
index 9f0d8aa5f..2584c0779 100644
--- a/src/content_mapblock.cpp
+++ b/src/content_mapblock.cpp
@@ -1731,9 +1731,9 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
} else if (f.param_type_2 == CPT2_WALLMOUNTED) {
//convert wallmounted to 6dfacedir.
//when cache enabled, it is already converted
- facedir = n.getWallMounted(nodedef);
+ facedir = n.getWallMounted(nodedef);
if (!enable_mesh_cache) {
- static const u8 wm_to_6d[6] = {20, 0, 16, 12, 8, 4};
+ static const u8 wm_to_6d[6] = {20, 0, 16+1, 12+3, 8, 4+2};
facedir = wm_to_6d[facedir];
}
}