diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-04-21 19:54:05 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-04-21 19:54:05 +0300 |
commit | 983bf6677d495184e67bf8c4363467752c9f9c75 (patch) | |
tree | b54d6bf8e4782149752ab75bd7c0b83257e63c2c /src | |
parent | c638442e78b953556e7dadd4c0c34cb0c719bbc8 (diff) | |
download | minetest-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.cpp | 3 |
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() |