Exemplo n.º 1
0
DWORD WINAPI TimerTickThread(LPVOID P)
{
	while(TRUE)
	{
		if(!v_GameInit && Myself)
			OnGameEvent(FALSE);
		else if(v_GameInit && !Myself)
			OnGameEvent(TRUE);

		if(D2Inited) 
			if(D2Delay<20)
				D2Delay++;
			else
			{
				if(GetGameInfo()->szCharName!=NULL)
				TimerTick();	
				else
				{
					Flash=false; D2Inited=false; D2Delay=0;
				}
			}
		Sleep(50);
	}
	return true;
}
Exemplo n.º 2
0
void CGHostGenie :: CreateGame( CMap *map, unsigned char gameState, bool saveGame, string gameName, string ownerName, string creatorName, string creatorServer, bool whisper )
{
	CBaseGame *oldGame = m_CurrentGame;
	CGHost :: CreateGame( map, gameState, saveGame, gameName, ownerName, creatorName, creatorServer, whisper );
	if( m_CurrentGame && oldGame != m_CurrentGame )
	{
		// new game was hosted
		OnGameEvent( GameEventTypeCreated, m_CurrentGame );
	}
}
Exemplo n.º 3
0
void CGHostGenie :: EventGameDeleted( CBaseGame *game )
{
	CGHost :: EventGameDeleted( game );
	OnGameEvent( GameEventTypeDeleted, game );
}