fix throttling interaction with sound and sound/throttle flag

This commit is contained in:
zeromus 2009-02-07 00:57:43 +00:00
parent 6efc80f1c5
commit ea451678a3
1 changed files with 7 additions and 1 deletions

View File

@ -785,7 +785,13 @@ void FCEUD_Update(uint8 *XBuf, int32 *Buffer, int Count)
//MBG TODO - think about this logic
//throttle
if(!(eoptions&EO_NOTHROTTLE) && (!soundo)) //if throttling is enabled..
bool throttle = true;
if( (eoptions&EO_NOTHROTTLE) )
{
if(!soundo) throttle = false;
}
if(throttle) //if throttling is enabled..
if(!turbo) //and turbo is disabled..
if(!FCEUI_EmulationPaused()
||JustFrameAdvanced