Update minetest.conf.example and settings_translation_file.cpp (#8278)
[oweals/minetest.git] / src / genericobject.cpp
index b1ec8ce4e2252e24d14ad96dba0e5cc220dd211f..49d16001ff15293b34a1ab0e175c678ce460c4b9 100644 (file)
@@ -92,15 +92,13 @@ std::string gob_cmd_set_sprite(
        return os.str();
 }
 
-std::string gob_cmd_punched(s16 damage, s16 result_hp)
+std::string gob_cmd_punched(u16 result_hp)
 {
        std::ostringstream os(std::ios::binary);
        // command
        writeU8(os, GENERIC_CMD_PUNCHED);
-       // damage
-       writeS16(os, damage);
        // result_hp
-       writeS16(os, result_hp);
+       writeU16(os, result_hp);
        return os.str();
 }