Browse Source

Fixed vote reading (untested)

pull/3/head
JustinAJ 9 years ago
parent
commit
58592cf51b
  1. BIN
      Release/Plugins/RenX.Core.lib
  2. 16
      RenX.Core/RenX_Server.cpp

BIN
Release/Plugins/RenX.Core.lib

Binary file not shown.

16
RenX.Core/RenX_Server.cpp

@ -2331,19 +2331,19 @@ void RenX::Server::processLine(const Jupiter::ReadableString &line)
success = false;
int yesVotes = 0;
Jupiter::ReferenceString yesVotesToken = tokens.getToken(5);
if (yesVotesToken.size() > 4)
Jupiter::ReferenceString votes_token = tokens.getToken(5);
if (votes_token.size() > 4)
{
yesVotesToken.shiftRight(4);
yesVotes = yesVotesToken.asInt();
votes_token.shiftRight(4);
yesVotes = votes_token.asInt();
}
int noVotes = 0;
Jupiter::ReferenceString noVotesToken = tokens.getToken(5);
if (yesVotesToken.size() > 3)
votes_token = tokens.getToken(6);
if (votes_token.size() > 3)
{
yesVotesToken.shiftRight(3);
yesVotes = yesVotesToken.asInt();
votes_token.shiftRight(3);
noVotes = votes_token.asInt();
}
for (size_t i = 0; i < xPlugins.size(); i++)

Loading…
Cancel
Save