Browse Source

getPlayerByName() now properly accepts IDs as input.

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

BIN
Release/Plugins/RenX.Core.lib

Binary file not shown.

2
RenX.Core/RenX_Server.cpp

@ -147,7 +147,7 @@ RenX::PlayerInfo *RenX::Server::getPlayerByName(const Jupiter::ReadableString &n
else if (name.matchi("pid?*"))
idToken.shiftRight(3);
else return nullptr;
int id = name.asInt(10);
int id = idToken.asInt(10);
for (Jupiter::DLList<RenX::PlayerInfo>::Node *node = RenX::Server::players.getNode(0); node != nullptr; node = node->next)
if (node->data->id == id)

Loading…
Cancel
Save