Browse Source

Added parsing for "map" command response; "map" command is now sent before the initial client list.

pull/3/head
JustinAJ 10 years ago
parent
commit
6a86cedd1a
  1. BIN
      Release/Plugins/RenX.Core.lib
  2. 5
      RenX.Core/RenX_Server.cpp

BIN
Release/Plugins/RenX.Core.lib

Binary file not shown.

5
RenX.Core/RenX_Server.cpp

@ -1222,6 +1222,10 @@ void RenX::Server::processLine(const Jupiter::ReadableString &line)
} }
buff.shiftLeft(1); buff.shiftLeft(1);
} }
else if (this->lastCommand.equalsi("map"))
{
this->map = buff.substring(1);
}
break; break;
case 'l': case 'l':
if (RenX::Server::rconVersion >= 3) if (RenX::Server::rconVersion >= 3)
@ -2105,6 +2109,7 @@ void RenX::Server::processLine(const Jupiter::ReadableString &line)
if (this->rconVersion >= 3) if (this->rconVersion >= 3)
{ {
RenX::Server::send(STRING_LITERAL_AS_REFERENCE("map"));
RenX::Server::fetchClientList(); RenX::Server::fetchClientList();
this->firstGame = true; this->firstGame = true;

Loading…
Cancel
Save