mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Send Player HP when setHP (or a setHP caller) is called instead of looping and testing the state change.
This commit is contained in:
parent
056e8f7839
commit
64ff966bae
6 changed files with 54 additions and 42 deletions
|
@ -372,6 +372,7 @@ public:
|
|||
u8* ser_vers, u16* prot_vers, u8* major, u8* minor, u8* patch,
|
||||
std::string* vers_string);
|
||||
|
||||
void SendPlayerHPOrDie(u16 peer_id, bool die) { die ? DiePlayer(peer_id) : SendPlayerHP(peer_id); }
|
||||
// Bind address
|
||||
Address m_bind_addr;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue