1
0

Fixed player heads always pointing north (new EntityHeadLook packet)

git-svn-id: http://mc-server.googlecode.com/svn/trunk@424 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com
2012-03-19 17:15:35 +00:00
parent 8d9e539f33
commit 2786ad306a
6 changed files with 82 additions and 16 deletions

View File

@@ -269,13 +269,17 @@ cServer::cServer()
cServer::~cServer()
{
if( m_pState->SListenClient ) m_pState->SListenClient.CloseSocket();
// TODO: Shut down the server gracefully
if ( m_pState->SListenClient )
{
m_pState->SListenClient.CloseSocket();
}
m_pState->SListenClient = 0;
m_pState->bStopListenThread = true;
delete m_pState->pListenThread; m_pState->pListenThread = 0;
delete m_pState->pListenThread; m_pState->pListenThread = NULL;
m_pState->bStopTickThread = true;
delete m_pState->pTickThread; m_pState->pTickThread = 0;
delete m_pState->pTickThread; m_pState->pTickThread = NULL;
delete m_pState;
}