forked from mirror/openmw-tes3mp
[Server] Remove return value from ON_PLAYER_CONNECT event
This commit is contained in:
parent
4e869a2974
commit
73d030b779
1 changed files with 2 additions and 2 deletions
|
@ -117,9 +117,9 @@ void Networking::processPlayerPacket(RakNet::Packet *packet)
|
|||
player->setLoadState(Player::LOADED);
|
||||
player->joinChannel(0, "Default");
|
||||
|
||||
bool result = luaState.getEventCtrl().Call<CoreEvent::ON_PLAYER_CONNECT, bool>(player.get());
|
||||
luaState.getEventCtrl().Call<CoreEvent::ON_PLAYER_CONNECT>(player.get());
|
||||
|
||||
if (!result)
|
||||
if (peer->GetConnectionState(player->guid) != RakNet::ConnectionState::IS_CONNECTED)
|
||||
{
|
||||
LOG_MESSAGE(Log::LOG_TRACE, "Player \"%s\" Disconnected by ON_PLAYER_CONNECT event", player->getName().c_str());
|
||||
playerPacketController->GetPacket(ID_USER_DISCONNECTED)->setPlayer(player.get());
|
||||
|
|
Loading…
Reference in a new issue