summaryrefslogtreecommitdiff
path: root/src/mg_schematic.cpp
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-10-02 01:07:57 +0100
committerparamat <mat.gregory@virginmedia.com>2015-10-02 06:03:36 +0100
commit8aaae7db05917dbbedebbd1b5616db976dfc2e8e (patch)
treebf39d114556ef25e477ab4305cbc4c2bd95039f9 /src/mg_schematic.cpp
parent0bf1984d2c9fb3a9dc73303551c18906c3c9482b (diff)
downloadminetest-8aaae7db05917dbbedebbd1b5616db976dfc2e8e.tar.gz
minetest-8aaae7db05917dbbedebbd1b5616db976dfc2e8e.tar.bz2
minetest-8aaae7db05917dbbedebbd1b5616db976dfc2e8e.zip
Mapnode: Replace rotateAlongYAxis with improved version
Get facedir by using lowest 5 bits of param2 and limiting to 23 More robust, frees up higher param2 bits for other uses Change lookup table and table index to u8
Diffstat (limited to 'src/mg_schematic.cpp')
-rw-r--r--src/mg_schematic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mg_schematic.cpp b/src/mg_schematic.cpp
index ca915b7b6..a5ffb20b8 100644
--- a/src/mg_schematic.cpp
+++ b/src/mg_schematic.cpp
@@ -167,7 +167,7 @@ void Schematic::blitToVManip(v3s16 p, MMVManip *vm, Rotation rot, bool force_pla
vm->m_data[vi].param1 = 0;
if (rot)
- vm->m_data[vi].rotateAlongYAxisFull(m_ndef, rot);
+ vm->m_data[vi].rotateAlongYAxis(m_ndef, rot);
}
}
y_map++;