From 983bf6677d495184e67bf8c4363467752c9f9c75 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Thu, 21 Apr 2011 19:54:05 +0300 Subject: [PATCH] set client to not show hp if server doesn't support it --- src/player.cpp | 3 +++ 1 file changed, 3 insertions(+) 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() -- 2.30.2