Skip to content

Commit

Permalink
Change message sent to player that lost all units
Browse files Browse the repository at this point in the history
  • Loading branch information
pwalig committed Jan 7, 2025
1 parent 30701ad commit c9f3fba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rts/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ void rts::game::deletePlayer(player* pl){
void rts::game::playerLostAllUnits(player* pl) {
assert(pl);
assert(activePlayers.find(pl) != activePlayers.end());
pl->getClient()->sendToClient({'L','\n'});
std::vector<char> buff = {'l'};
message::appendStringWDelim(buff, pl->getName(), '\n');
pl->getClient()->sendToClient(buff);
removePlayerFromRoomOrQueue(pl);
}

Expand Down

0 comments on commit c9f3fba

Please sign in to comment.