1
0
Fork 0

Reorginize the code just before fgMainLoop a bit so that the lighting update actually has any effect

This commit is contained in:
ehofman 2003-09-17 10:02:36 +00:00
parent 19b61eec1e
commit 15f45ad9a5

View file

@ -1386,13 +1386,13 @@ static void fgIdleFunction ( void ) {
} else if ( idle_state == 6 ) { } else if ( idle_state == 6 ) {
// sleep(1); // sleep(1);
fgUpdateSkyAndLightingParams();
idle_state = 1000; idle_state = 1000;
SG_LOG( SG_GENERAL, SG_INFO, "Panel visible = " << fgPanelVisible() ); SG_LOG( SG_GENERAL, SG_INFO, "Panel visible = " << fgPanelVisible() );
fgReshape( fgGetInt("/sim/startup/xsize"), fgReshape( fgGetInt("/sim/startup/xsize"),
fgGetInt("/sim/startup/ysize") ); fgGetInt("/sim/startup/ysize") );
fgUpdateSkyAndLightingParams();
} }
if ( idle_state == 1000 ) { if ( idle_state == 1000 ) {