diff --git a/src/rts/unit.cpp b/src/rts/unit.cpp index 7eda17b..83c9283 100644 --- a/src/rts/unit.cpp +++ b/src/rts/unit.cpp @@ -25,7 +25,7 @@ void rts::unit::mine(){ std::vector buff = {'d'}; message::appendNumberWDelim(buff, id, ' '); - message::appendNumberWDelim(buff, std::max(f->getHp(), 0), '\n'); + message::appendNumberWDelim(buff, f->getHp(), '\n'); owner->getGame()->sendToPlayers(buff); if (f->getHp() <= 0) {