Browse Source

Made input player for sendMessage const.

pull/3/head
JustinAJ 10 years ago
parent
commit
8f8736aa0f
  1. 2
      RenX.Core/RenX_Server.cpp
  2. 2
      RenX.Core/RenX_Server.h

2
RenX.Core/RenX_Server.cpp

@ -141,7 +141,7 @@ int RenX::Server::sendMessage(const Jupiter::ReadableString &message)
}
}
int RenX::Server::sendMessage(RenX::PlayerInfo *player, const Jupiter::ReadableString &message)
int RenX::Server::sendMessage(const RenX::PlayerInfo *player, const Jupiter::ReadableString &message)
{
if (RenX::Server::profile->privateMessages == false)
return RenX::Server::sendMessage(message);

2
RenX.Core/RenX_Server.h

@ -155,7 +155,7 @@ namespace RenX
* @param message Message to send in-game.
* @return The number of bytes sent on success, less than or equal to zero otherwise.
*/
int sendMessage(RenX::PlayerInfo *player, const Jupiter::ReadableString &message);
int sendMessage(const RenX::PlayerInfo *player, const Jupiter::ReadableString &message);
/**
* @brief Sends data to the server.

Loading…
Cancel
Save