Mistři v programování na #hovnokod

C/C++ #245

if ( g_nIdleState == 0 ) 
	{	// Initialize the splash screen right away
		if ( g_CurrentOptions.get_splash_screen() ) 
			fgSplashInit();
		g_nIdleState++;
    } 
	else 
		if ( g_nIdleState == 1 ) 
			g_nIdleState++;
		else 
			if ( g_nIdleState == 2 ) 
				g_nIdleState++;
			else
				if ( g_nIdleState == 3 ) 
				{
					if( !fgInitSubsystems()) 
					{
						FG_LOG(__FILE__, __LINE__,  FG_DK_GENERAL, FG_FALSE,   "Subsystem initializations failed ..." );
						exit(-1);
					}
					g_nIdleState++;
				}
				else
					if ( g_nIdleState == 4 ) 
					{
						fgInitVisuals();  // setup OpenGL view parameters
						g_nIdleState++;
					}
					else
						if ( g_nIdleState == 5 ) 
							g_nIdleState++;
						else 
							if ( g_nIdleState == 6 ) 
							{
								mark_time( &g_tsFrame );
								mark_time(&g_tsTime);
								g_nIdleState = 1000;
							} 

    if ( g_nIdleState == 1000 ) 
		fgMainLoop();
	else 
		if ( g_CurrentOptions.get_splash_screen() == 1 ) 
			fgSplashUpdate(0.0);

HovnoKod,