aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-05-19 21:29:49 -0400
committerkwolekr <kwolekr@minetest.net>2013-05-19 21:29:49 -0400
commit981c6c9bf249f15945ca63c34d78d8c5a81ce469 (patch)
treed2cfb618687d9d2fcda3b50277e91b107c66d074
parentd00e8bd31a185a4000807de6d21eccce9f86671e (diff)
downloadminetest-981c6c9bf249f15945ca63c34d78d8c5a81ce469.tar.gz
minetest-981c6c9bf249f15945ca63c34d78d8c5a81ce469.tar.bz2
minetest-981c6c9bf249f15945ca63c34d78d8c5a81ce469.zip
Fix lava damage on player's upper body
-rw-r--r--src/environment.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/environment.cpp b/src/environment.cpp
index 03b8ef7f6..9f87b8c91 100644
--- a/src/environment.cpp
+++ b/src/environment.cpp
@@ -2169,7 +2169,7 @@ void ClientEnvironment::step(float dtime)
v3s16 p2 = floatToInt(pf + v3f(0, BS*0.8, 0), BS);
MapNode n2 = m_map->getNodeNoEx(p2);
v3s16 p3 = floatToInt(pf + v3f(0, BS*1.6, 0), BS);
- MapNode n3 = m_map->getNodeNoEx(p2);
+ MapNode n3 = m_map->getNodeNoEx(p3);
u32 damage_per_second = 0;
damage_per_second = MYMAX(damage_per_second,