Fix damage wraparound if very high damage (#11872)

This commit is contained in:
Wuzzy
2022-01-06 20:16:35 +00:00
committed by GitHub
parent 85da2e284b
commit b81948a14c
7 changed files with 10 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ class ScriptApiEntity
const collisionMoveResult *moveresult);
bool luaentity_Punch(u16 id,
ServerActiveObject *puncher, float time_from_last_punch,
const ToolCapabilities *toolcap, v3f dir, s16 damage);
const ToolCapabilities *toolcap, v3f dir, s32 damage);
bool luaentity_on_death(u16 id, ServerActiveObject *killer);
void luaentity_Rightclick(u16 id, ServerActiveObject *clicker);
void luaentity_on_attach_child(u16 id, ServerActiveObject *child);