mirror of
https://github.com/halpz/re3.git
synced 2025-05-11 10:36:38 +03:00
Fixed CCamera::SetWideScreenOff dupe, removed goto in CStreaming::RetryLoadFile
This commit is contained in:
parent
dd99edd339
commit
96eee4f10f
4 changed files with 31 additions and 18 deletions
|
@ -1719,8 +1719,10 @@ CStreaming::RetryLoadFile(int32 ch)
|
|||
}
|
||||
|
||||
switch(ms_channel[ch].state){
|
||||
case CHANNELSTATE_ERROR:
|
||||
ms_channel[ch].numTries++;
|
||||
if (CdStreamGetStatus(ch) == STREAM_READING || CdStreamGetStatus(ch) == STREAM_WAITING) break;
|
||||
case CHANNELSTATE_IDLE:
|
||||
streamread:
|
||||
CdStreamRead(ch, ms_pStreamingBuffer[ch], ms_channel[ch].position, ms_channel[ch].size);
|
||||
ms_channel[ch].state = CHANNELSTATE_READING;
|
||||
ms_channel[ch].field24 = -600;
|
||||
|
@ -1731,11 +1733,6 @@ streamread:
|
|||
CTimer::SetCodePause(false);
|
||||
}
|
||||
break;
|
||||
case CHANNELSTATE_ERROR:
|
||||
ms_channel[ch].numTries++;
|
||||
if(CdStreamGetStatus(ch) != STREAM_READING && CdStreamGetStatus(ch) != STREAM_WAITING)
|
||||
goto streamread;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue