From: Perttu Ahola Date: Thu, 21 Apr 2011 16:54:05 +0000 (+0300) Subject: set client to not show hp if server doesn't support it X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=983bf6677d495184e67bf8c4363467752c9f9c75;p=zefram%2Fminetest%2Fminetest_engine.git set client to not show hp if server doesn't support it --- diff --git a/src/player.cpp b/src/player.cpp index 31415b6b..3d4c9826 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()