diff options
author | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-25 15:03:01 +0100 |
---|---|---|
committer | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-25 15:03:01 +0100 |
commit | 62737fd1632abd232e7e0ff00a19456bb28a4a37 (patch) | |
tree | 7bf91facfdbd586ff5c144eaf1ac6160b2965002 /source/cClientHandle.cpp | |
parent | Code improvements (diff) | |
download | cuberite-62737fd1632abd232e7e0ff00a19456bb28a4a37.tar cuberite-62737fd1632abd232e7e0ff00a19456bb28a4a37.tar.gz cuberite-62737fd1632abd232e7e0ff00a19456bb28a4a37.tar.bz2 cuberite-62737fd1632abd232e7e0ff00a19456bb28a4a37.tar.lz cuberite-62737fd1632abd232e7e0ff00a19456bb28a4a37.tar.xz cuberite-62737fd1632abd232e7e0ff00a19456bb28a4a37.tar.zst cuberite-62737fd1632abd232e7e0ff00a19456bb28a4a37.zip |
Diffstat (limited to 'source/cClientHandle.cpp')
-rw-r--r-- | source/cClientHandle.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index fefdb8aec..902e3df2f 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -1095,10 +1095,13 @@ void cClientHandle::HandlePacket( cPacket* a_Packet ) case E_WINDOW_CLOSE:
{
cPacket_WindowClose* PacketData = reinterpret_cast<cPacket_WindowClose*>(a_Packet);
+ m_Player->CloseWindow(PacketData->m_Close);
+ /*
if( PacketData->m_Close > 0 ) // Don't care about closing inventory
{
m_Player->CloseWindow();
}
+ */
}
break;
case E_WINDOW_CLICK:
@@ -1176,10 +1179,9 @@ void cClientHandle::AuthenticateThread( void* a_Param ) cAuthenticator Authenticator;
if( !Authenticator.Authenticate( self->GetUsername(), cRoot::Get()->GetServer()->GetServerID() ) )
{
- self->Kick("You could not be authenticated, sorry buddy!");
+ self->Kick("Failed to verify username!");
return;
}
-
self->m_bSendLoginResponse = true;
}
|