projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c638442
)
set client to not show hp if server doesn't support it
author
Perttu Ahola
<celeron55@gmail.com>
Thu, 21 Apr 2011 16:54:05 +0000
(19:54 +0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Thu, 21 Apr 2011 16:54:05 +0000
(19:54 +0300)
src/player.cpp
patch
|
blob
|
history
diff --git
a/src/player.cpp
b/src/player.cpp
index 31415b6b279481f4b88d48faf1d0439f3d870150..3d4c9826497c79d15583f60a71e91ef8c76f551d 100644
(file)
--- 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()