mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Consistent HP and damage types (#8167)
Remove deprecated HUDs and chat message handling. Remove unused m_damage variable (compat break). HP: s32 for setter/calculations, u16 for getter.
This commit is contained in:
@@ -1833,7 +1833,7 @@ void Server::SendPlayerHP(session_t peer_id)
|
||||
m_script->player_event(playersao,"health_changed");
|
||||
|
||||
// Send to other clients
|
||||
std::string str = gob_cmd_punched(playersao->readDamage(), playersao->getHP());
|
||||
std::string str = gob_cmd_punched(playersao->getHP());
|
||||
ActiveObjectMessage aom(playersao->getId(), true, str);
|
||||
playersao->m_messages_out.push(aom);
|
||||
}
|
||||
|
Reference in New Issue
Block a user