diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2017-09-15 12:18:47 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-09-15 12:18:47 +0200 |
commit | edbc533414b0ba991a82f8003d90924e1dc60d95 (patch) | |
tree | 9fe4c04bc35f345e9a62f1358fa5e0ad324938e9 /src/server.cpp | |
parent | 7640749d68b87a62868840d34a665101861ca9c0 (diff) | |
download | minetest-edbc533414b0ba991a82f8003d90924e1dc60d95.tar.gz minetest-edbc533414b0ba991a82f8003d90924e1dc60d95.tar.bz2 minetest-edbc533414b0ba991a82f8003d90924e1dc60d95.zip |
Customizeable max breath for players (#6411)
* Customizeable maximal breath for players
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp index 33ff6fcef..2fdd76c22 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -2542,7 +2542,7 @@ void Server::RespawnPlayer(u16 peer_id) << " respawns" << std::endl; playersao->setHP(playersao->accessObjectProperties()->hp_max); - playersao->setBreath(PLAYER_MAX_BREATH); + playersao->setBreath(playersao->accessObjectProperties()->breath_max); bool repositioned = m_script->on_respawnplayer(playersao); if (!repositioned) { |