1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-30 06:55:33 +01:00

Send player damage to all clients and apply [brighten

This commit is contained in:
PilzAdam
2013-08-13 23:06:39 +02:00
parent 3ee8098708
commit 787b43b218
4 changed files with 45 additions and 20 deletions

View File

@@ -193,6 +193,7 @@ public:
void rightClick(ServerActiveObject *clicker);
s16 getHP() const;
void setHP(s16 hp);
s16 readDamage();
u16 getBreath() const;
void setBreath(u16 breath);
void setArmorGroups(const ItemGroupList &armor_groups);
@@ -283,6 +284,7 @@ private:
Player *m_player;
u16 m_peer_id;
Inventory *m_inventory;
s16 m_damage;
// Cheat prevention
LagPool m_dig_pool;