aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_entity.h
diff options
context:
space:
mode:
authorWuzzy <wuzzy2@mail.ru>2022-01-06 20:16:35 +0000
committerGitHub <noreply@github.com>2022-01-06 21:16:35 +0100
commitb81948a14c138517f6a227dac5b71f0b2facb33c (patch)
treeffa09a47f4d5ad118b165d889baff5f122e2ec2f /src/script/cpp_api/s_entity.h
parent85da2e284b8091062e1b53ad5a703aae6cbc3a3c (diff)
downloadminetest-b81948a14c138517f6a227dac5b71f0b2facb33c.tar.gz
minetest-b81948a14c138517f6a227dac5b71f0b2facb33c.tar.bz2
minetest-b81948a14c138517f6a227dac5b71f0b2facb33c.zip
Fix damage wraparound if very high damage (#11872)
Diffstat (limited to 'src/script/cpp_api/s_entity.h')
-rw-r--r--src/script/cpp_api/s_entity.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/cpp_api/s_entity.h b/src/script/cpp_api/s_entity.h
index b52f6e447..7658ae922 100644
--- a/src/script/cpp_api/s_entity.h
+++ b/src/script/cpp_api/s_entity.h
@@ -42,7 +42,7 @@ public:
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);