aboutsummaryrefslogtreecommitdiff
path: root/src/mapblockobject.cpp
diff options
context:
space:
mode:
authorNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-07-30 18:53:54 +0200
committerNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-07-30 18:55:43 +0200
commit4ef9c7675ada82961d83601712a47ebad78b67b5 (patch)
treecdfd863219a8dc1031e727740e7d895296c5855d /src/mapblockobject.cpp
parentf69123050b62ada635751b7155bb6822b0a97a9b (diff)
parentdbea511a6f877450cfd5adb86efa55a8f00cc9a1 (diff)
downloadminetest-4ef9c7675ada82961d83601712a47ebad78b67b5.tar.gz
minetest-4ef9c7675ada82961d83601712a47ebad78b67b5.tar.bz2
minetest-4ef9c7675ada82961d83601712a47ebad78b67b5.zip
Merge remote-tracking branch 'origin/upstream'
Diffstat (limited to 'src/mapblockobject.cpp')
-rw-r--r--src/mapblockobject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapblockobject.cpp b/src/mapblockobject.cpp
index ab1c20267..071a14b0c 100644
--- a/src/mapblockobject.cpp
+++ b/src/mapblockobject.cpp
@@ -161,8 +161,8 @@ void MovingObject::move(float dtime, v3f acceleration)
for(s16 x = oldpos_i.X - 1; x <= oldpos_i.X + 1; x++)
{
try{
- if(content_walkable(m_block->getNodeParent(v3s16(x,y,z)).d)
- == false)
+ MapNode n = m_block->getNodeParent(v3s16(x,y,z));
+ if(content_features(n).walkable == false)
continue;
}
catch(InvalidPositionException &e)