diff options
author | Perttu Ahola <celeron55@gmail.com> | 2010-11-30 15:35:03 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2010-11-30 15:35:03 +0200 |
commit | 38353751c9f4e03fb6a0b855e6d8b5691af71dc0 (patch) | |
tree | fb3b6b96b37704382560ed735d26099338853bae /src/mapblockobject.cpp | |
parent | 4a8973aeac1d44b78e44efde113e5c47bb3a803b (diff) | |
download | minetest-38353751c9f4e03fb6a0b855e6d8b5691af71dc0.tar.gz minetest-38353751c9f4e03fb6a0b855e6d8b5691af71dc0.tar.bz2 minetest-38353751c9f4e03fb6a0b855e6d8b5691af71dc0.zip |
better water
Diffstat (limited to 'src/mapblockobject.cpp')
-rw-r--r-- | src/mapblockobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapblockobject.cpp b/src/mapblockobject.cpp index 1fda9baed..3a28e2250 100644 --- a/src/mapblockobject.cpp +++ b/src/mapblockobject.cpp @@ -145,9 +145,9 @@ void MovingObject::move(float dtime, v3f acceleration) for(s16 x = oldpos_i.X - 1; x <= oldpos_i.X + 1; x++) { try{ - if(m_block->getNodeParent(v3s16(x,y,z)).d == MATERIAL_AIR){ + if(material_walkable(m_block->getNodeParent(v3s16(x,y,z)).d) + == false) continue; - } } catch(InvalidPositionException &e) { |