Skip to content

Commit

Permalink
Updated "TeamJoin;" event parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
JAJames committed Dec 1, 2019
1 parent 8f1c09a commit 6726f71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Plugins/RenX/RenX.Core/RenX_Server.cpp
Expand Up @@ -2713,11 +2713,11 @@ void RenX::Server::processLine(const Jupiter::ReadableString &line)
}
else if (subHeader.equals("TeamJoin;"))
{
// Player | "joined" | Team
// Player | "joined" | Team | "left" | Old Team
// Player | "joined" | Team | "score" | Score | "last round score" | Score | "time" | Timestamp
// Player | "joined" | Team | "left" | Old Team | "score" | Score | "last round score" | Score | "time" | Timestamp
RenX::PlayerInfo *player = parseGetPlayerOrAdd(tokens.getToken(2));
player->character = Jupiter::ReferenceString::empty;
if (tokens.token_count > 4)
if (tokens.getToken(5) == "left")
{
RenX::TeamType oldTeam = RenX::getTeam(tokens.getToken(6));
if (oldTeam != RenX::TeamType::None)
Expand Down

0 comments on commit 6726f71

Please sign in to comment.