summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorMark Holmquist <marktraceur@gmail.com>2011-07-30 17:26:13 -0700
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-01 09:22:36 +0200
commit8e67f4c4e617a8fcbb9176de1bf0b267acfc6e2f (patch)
treec855923c5b2d76d6de7fbc5f46f29b1d60f6b1db /src/game.cpp
parent1c59cff8328bd85d6aed7df38b7eaddbeeca0aec (diff)
downloadminetest-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/game.cpp')
-rw-r--r--src/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index d8ea45fb1..fb5d7cb93 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -541,7 +541,7 @@ void getPointedNode(Client *client, v3f player_position,
else if(n.getContent() == CONTENT_LADDER)
{
- v3s16 dir = unpackDir(n.dir);
+ v3s16 dir = unpackDir(n.param2);
v3f dir_f = v3f(dir.X, dir.Y, dir.Z);
dir_f *= BS/2 - BS/6 - BS/20;
v3f cpf = npf + dir_f;