Exemplo n.º 1
0
//=============================================================================
void OnDestroy()
{
	if (G_pListenSock != NULL) delete G_pListenSock;
	if (G_pLogSock != NULL) delete G_pLogSock;

	/*if (g_gameCopy != NULL) {
		g_gameCopy->Quit();
		delete g_gameCopy;
	}*/

	if (G_mmTimer != NULL) _StopTimer(G_mmTimer);
	_TermWinsock();

	PostQuitMessage(0);
}
Exemplo n.º 2
0
void OnDestroy() {
    delete G_pListenSock;
    delete G_pLogSock;

    if (G_pGame != 0) {
        G_pGame->Quit();
        delete G_pGame;
    }

    if (G_mmTimer != 0) _StopTimer(G_mmTimer);
    _TermWinsock();

    if (pLogFile != 0) fclose(pLogFile);

    PostQuitMessage(0);
}