Browse Source

getPlayerByPartNameFast() is now case insensitive.

pull/3/head
JustinAJ 10 years ago
parent
commit
e7bfe5bb82
  1. 2
      Jupiter
  2. BIN
      Release/Bot.lib
  3. BIN
      Release/Plugins/RenX.Core.lib
  4. 2
      RenX.Core/RenX_Server.cpp

2
Jupiter

@ -1 +1 @@
Subproject commit 9bff3fa82cb2763c885787b4f517c1b4429e77cb Subproject commit c9da8dc22645956d62405f96761bc6c068bc50ef

BIN
Release/Bot.lib

Binary file not shown.

BIN
Release/Plugins/RenX.Core.lib

Binary file not shown.

2
RenX.Core/RenX_Server.cpp

@ -166,7 +166,7 @@ RenX::PlayerInfo *RenX::Server::getPlayerByPartNameFast(const Jupiter::ReadableS
{ {
if (RenX::Server::players.size() == 0) return nullptr; if (RenX::Server::players.size() == 0) return nullptr;
for (Jupiter::DLList<RenX::PlayerInfo>::Node *node = RenX::Server::players.getNode(0); node != nullptr; node = node->next) for (Jupiter::DLList<RenX::PlayerInfo>::Node *node = RenX::Server::players.getNode(0); node != nullptr; node = node->next)
if (node->data->name.find(partName) != Jupiter::INVALID_INDEX) if (node->data->name.findi(partName) != Jupiter::INVALID_INDEX)
return node->data; return node->data;
return nullptr; return nullptr;
} }

Loading…
Cancel
Save