Browse Source

Updated "TeamJoin;" event parsing

release/0.19
Jessica James 5 years ago
parent
commit
6726f7178c
  1. 6
      src/Plugins/RenX/RenX.Core/RenX_Server.cpp

6
src/Plugins/RenX/RenX.Core/RenX_Server.cpp

@ -2713,11 +2713,11 @@ void RenX::Server::processLine(const Jupiter::ReadableString &line)
} }
else if (subHeader.equals("TeamJoin;")) else if (subHeader.equals("TeamJoin;"))
{ {
// Player | "joined" | Team // Player | "joined" | Team | "score" | Score | "last round score" | Score | "time" | Timestamp
// Player | "joined" | Team | "left" | Old Team // Player | "joined" | Team | "left" | Old Team | "score" | Score | "last round score" | Score | "time" | Timestamp
RenX::PlayerInfo *player = parseGetPlayerOrAdd(tokens.getToken(2)); RenX::PlayerInfo *player = parseGetPlayerOrAdd(tokens.getToken(2));
player->character = Jupiter::ReferenceString::empty; player->character = Jupiter::ReferenceString::empty;
if (tokens.token_count > 4) if (tokens.getToken(5) == "left")
{ {
RenX::TeamType oldTeam = RenX::getTeam(tokens.getToken(6)); RenX::TeamType oldTeam = RenX::getTeam(tokens.getToken(6));
if (oldTeam != RenX::TeamType::None) if (oldTeam != RenX::TeamType::None)

Loading…
Cancel
Save