Browse Source

Minor optimization

pull/3/head
JustinAJ 10 years ago
parent
commit
bdaa8a4eba
  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

@ -124,7 +124,7 @@ int RenX::Server::sendMessage(const Jupiter::ReadableString &message)
if (RenX::Server::profile->privateMessages && RenX::Server::players.size() != 0) if (RenX::Server::profile->privateMessages && RenX::Server::players.size() != 0)
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->isBot == false) if (node->data->isBot == false)
r += RenX::Server::sendMessage(node->data, message); r += RenX::Server::sock.send(Jupiter::StringS::Format("cevaprivatesay pid%d %.*s\n", node->data->id, message.size(), message.ptr()));
return r; return r;
} }
else else

Loading…
Cancel
Save