aboutsummaryrefslogtreecommitdiff
path: root/src/genericobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/genericobject.cpp')
-rw-r--r--src/genericobject.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/genericobject.cpp b/src/genericobject.cpp
index b1ec8ce4e..49d16001f 100644
--- a/src/genericobject.cpp
+++ b/src/genericobject.cpp
@@ -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();
}