set client to not show hp if server doesn't support it
authorPerttu Ahola <celeron55@gmail.com>
Thu, 21 Apr 2011 16:54:05 +0000 (19:54 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Thu, 21 Apr 2011 16:54:05 +0000 (19:54 +0300)
src/player.cpp

index 31415b6b279481f4b88d48faf1d0439f3d870150..3d4c9826497c79d15583f60a71e91ef8c76f551d 100644 (file)
@@ -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()