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-Tag: 0.2.20110731_3~258 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=983bf6677d495184e67bf8c4363467752c9f9c75;p=oweals%2Fminetest.git set client to not show hp if server doesn't support it --- 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()