We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81c2370 commit 7603215Copy full SHA for 7603215
src/client/content_cao.cpp
@@ -1555,7 +1555,7 @@ void GenericCAO::processMessage(const std::string &data)
1555
1556
if (damage > 0)
1557
{
1558
- if (m_hp <= 0)
+ if (m_hp == 0)
1559
1560
// TODO: Execute defined fast response
1561
// As there is no definition, make a smoke puff
@@ -1571,7 +1571,9 @@ void GenericCAO::processMessage(const std::string &data)
1571
m_reset_textures_timer += 0.05 * damage;
1572
updateTextures(m_current_texture_modifier + "^[brighten");
1573
}
1574
- } else {
+ }
1575
+
1576
+ if (m_hp == 0) {
1577
// Same as 'Server::DiePlayer'
1578
clearParentAttachment();
1579
// Same as 'ObjectRef::l_remove'
0 commit comments