summaryrefslogtreecommitdiff
path: root/src/mapnode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapnode.cpp')
-rw-r--r--src/mapnode.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mapnode.cpp b/src/mapnode.cpp
index ff5ad5557..aaea3831e 100644
--- a/src/mapnode.cpp
+++ b/src/mapnode.cpp
@@ -249,7 +249,11 @@ void transformNodeBox(const MapNode &n, const NodeBox &nodebox,
int facedir = n.getFaceDir(nodemgr);
u8 axisdir = facedir>>2;
facedir&=0x03;
- for (aabb3f box : fixed) {
+ for (std::vector<aabb3f>::const_iterator
+ i = fixed.begin();
+ i != fixed.end(); ++i) {
+ aabb3f box = *i;
+
if (nodebox.type == NODEBOX_LEVELED)
box.MaxEdge.Y = (-0.5f + n.getLevel(nodemgr) / 64.0f) * BS;