Skip to content

Commit

Permalink
Fix hp in d message
Browse files Browse the repository at this point in the history
  • Loading branch information
pwalig committed Dec 25, 2024
1 parent 74a6996 commit 30701ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rts/unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void rts::unit::mine(){

std::vector<char> 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) {
Expand Down

0 comments on commit 30701ad

Please sign in to comment.