summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorDániel Juhász <juhdanad@gmail.com>2017-02-18 20:26:19 +0100
committerparamat <mat.gregory@virginmedia.com>2017-02-18 22:47:24 +0000
commit00123ee04d19ecc98e0a6a9255e5697a78167360 (patch)
tree7b960732fde6ca3d3f5db4ae80c5332b3f80713b /src/game.cpp
parent111e7e1cc8316e4812e85fddc579feaeedecbb58 (diff)
downloadminetest-00123ee04d19ecc98e0a6a9255e5697a78167360.tar.gz
minetest-00123ee04d19ecc98e0a6a9255e5697a78167360.tar.bz2
minetest-00123ee04d19ecc98e0a6a9255e5697a78167360.zip
Fixes for colorwallmounted and colorfacedir nodes
Correct node placement prediction for attached colorwallmounted nodes. Correct placement direction for colorfacedir and colorwallmounted nodes. Correct detatch mechanism for attached colorwallmounted nodes.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 1735737de..55b2ccec9 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -884,7 +884,8 @@ bool nodePlacementPrediction(Client &client,
};
v3s16 pp;
- if (nodedef->get(id).param_type_2 == CPT2_WALLMOUNTED)
+ if (nodedef->get(id).param_type_2 == CPT2_WALLMOUNTED ||
+ nodedef->get(id).param_type_2 == CPT2_COLORED_WALLMOUNTED)
pp = p + wallmounted_dirs[param2];
else
pp = p + v3s16(0, -1, 0);