diff options
author | Mark Holmquist <marktraceur@gmail.com> | 2011-07-30 17:26:13 -0700 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-08-01 09:22:36 +0200 |
commit | 8e67f4c4e617a8fcbb9176de1bf0b267acfc6e2f (patch) | |
tree | c855923c5b2d76d6de7fbc5f46f29b1d60f6b1db /src/content_mapblock.cpp | |
parent | 1c59cff8328bd85d6aed7df38b7eaddbeeca0aec (diff) | |
download | minetest-8e67f4c4e617a8fcbb9176de1bf0b267acfc6e2f.tar.gz minetest-8e67f4c4e617a8fcbb9176de1bf0b267acfc6e2f.tar.bz2 minetest-8e67f4c4e617a8fcbb9176de1bf0b267acfc6e2f.zip |
Fixed a few problems in the ladder update, and changed the speed to account for gravity
Diffstat (limited to 'src/content_mapblock.cpp')
-rw-r--r-- | src/content_mapblock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content_mapblock.cpp b/src/content_mapblock.cpp index ceb673606..ed2cd766a 100644 --- a/src/content_mapblock.cpp +++ b/src/content_mapblock.cpp @@ -1134,7 +1134,7 @@ void mapblock_mesh_generate_special(MeshMakeData *data, u16 indices[] = {0,1,2,2,3,0}; collector.append(material_rail, vertices, 4, indices, 6); } - else if (n.d == CONTENT_LADDER) { + else if (n.getContent() == CONTENT_LADDER) { u8 l = decode_light(n.getLightBlend(data->m_daynight_ratio)); video::SColor c(255,l,l,l); @@ -1149,7 +1149,7 @@ void mapblock_mesh_generate_special(MeshMakeData *data, video::S3DVertex(BS/2-d,BS/2,-BS/2, 0,0,0, c, 0,0), }; - v3s16 dir = unpackDir(n.dir); + v3s16 dir = unpackDir(n.param2); for(s32 i=0; i<4; i++) { |