mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 17:35:37 +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:
@@ -53,7 +53,7 @@ struct ClientEnvEvent
|
||||
//struct{
|
||||
//} none;
|
||||
struct{
|
||||
u8 amount;
|
||||
u16 amount;
|
||||
bool send_to_server;
|
||||
} player_damage;
|
||||
};
|
||||
@@ -115,7 +115,7 @@ public:
|
||||
Callbacks for activeobjects
|
||||
*/
|
||||
|
||||
void damageLocalPlayer(u8 damage, bool handle_hp=true);
|
||||
void damageLocalPlayer(u16 damage, bool handle_hp=true);
|
||||
|
||||
/*
|
||||
Client likes to call these
|
||||
|
Reference in New Issue
Block a user