diff options
Diffstat (limited to 'src/content_sao.cpp')
-rw-r--r-- | src/content_sao.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/content_sao.cpp b/src/content_sao.cpp index cc02a7431..993859f1c 100644 --- a/src/content_sao.cpp +++ b/src/content_sao.cpp @@ -935,6 +935,7 @@ PlayerSAO::PlayerSAO(ServerEnvironment *env_, Player *player_, u16 peer_id_, m_moved(false), m_inventory_not_sent(false), m_hp_not_sent(false), + m_breath_not_sent(false), m_wielded_item_not_sent(false), m_physics_override_speed(1), m_physics_override_jump(1), @@ -1370,6 +1371,16 @@ void PlayerSAO::setHP(s16 hp) } } +u16 PlayerSAO::getBreath() const +{ + return m_player->getBreath(); +} + +void PlayerSAO::setBreath(u16 breath) +{ + m_player->setBreath(breath); +} + void PlayerSAO::setArmorGroups(const ItemGroupList &armor_groups) { m_armor_groups = armor_groups; |