summaryrefslogtreecommitdiff
path: root/src/server.cpp
diff options
context:
space:
mode:
authorWuzzy <Wuzzy2@mail.ru>2019-02-21 00:36:17 +0100
committersfan5 <sfan5@live.de>2019-08-01 14:45:23 +0200
commitec3142af990ea55775185e04e46ebf8eb16e2268 (patch)
tree3ada15363f854f8cf0fefcab1e045cac091f6984 /src/server.cpp
parent3296952ae55231d601686b69c037ec1366381fc5 (diff)
downloadminetest-ec3142af990ea55775185e04e46ebf8eb16e2268.tar.gz
minetest-ec3142af990ea55775185e04e46ebf8eb16e2268.tar.bz2
minetest-ec3142af990ea55775185e04e46ebf8eb16e2268.zip
Group "immortal" also protects players from damage
Document new meaning of immortal=1 for players Disable breathing if player is immortal Hide builtin statbars if player immortal (delayed) Co-authored-by: ClobberXD <ClobberXD@gmail.com>
Diffstat (limited to 'src/server.cpp')
-rw-r--r--src/server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp
index f3c13bad1..b3a6b4909 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -1429,7 +1429,7 @@ void Server::SendPlayerHPOrDie(PlayerSAO *playersao, const PlayerHPChangeReason
if (playersao->isImmortal())
return;
- session_t peer_id = playersao->getPeerID();
+ session_t peer_id = playersao->getPeerID();
bool is_alive = playersao->getHP() > 0;
if (is_alive)