aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-04-21 19:54:05 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-04-21 19:54:05 +0300
commit983bf6677d495184e67bf8c4363467752c9f9c75 (patch)
treeb54d6bf8e4782149752ab75bd7c0b83257e63c2c /src
parentc638442e78b953556e7dadd4c0c34cb0c719bbc8 (diff)
downloadminetest-983bf6677d495184e67bf8c4363467752c9f9c75.tar.gz
minetest-983bf6677d495184e67bf8c4363467752c9f9c75.tar.bz2
minetest-983bf6677d495184e67bf8c4363467752c9f9c75.zip
set client to not show hp if server doesn't support it
Diffstat (limited to 'src')
-rw-r--r--src/player.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/player.cpp b/src/player.cpp
index 31415b6b2..3d4c98264 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -277,6 +277,9 @@ LocalPlayer::LocalPlayer():
m_sneak_node(32767,32767,32767),
m_sneak_node_exists(false)
{
+ // Initialize hp to 0, so that no hearts will be shown if server
+ // doesn't support health points
+ hp = 0;
}
LocalPlayer::~LocalPlayer()