(ProcessFIFO) Get rid of goto

This commit is contained in:
twinaphex 2015-08-05 07:39:16 +02:00
parent 1ea10906d6
commit f2b9bba58f

View File

@ -791,18 +791,17 @@ void PS_GPU::ProcessFIFO(void)
for(i = 0; i < command_len; i++) for(i = 0; i < command_len; i++)
CB[i] = BlitterFIFO.Read(); CB[i] = BlitterFIFO.Read();
if (read_fifo) if (!read_fifo)
goto end; {
if(!command->ss_cmd)
DrawTimeAvail -= 2;
if(!command->ss_cmd) // A very very ugly kludge to support texture mode specialization. fixme/cleanup/SOMETHING in the future.
DrawTimeAvail -= 2; /* Don't alter SpriteFlip here. */
if(cc >= 0x20 && cc <= 0x3F && (cc & 0x4))
SetTPage(CB[4 + ((cc >> 4) & 0x1)] >> 16);
}
// A very very ugly kludge to support texture mode specialization. fixme/cleanup/SOMETHING in the future.
/* Don't alter SpriteFlip here. */
if(cc >= 0x20 && cc <= 0x3F && (cc & 0x4))
SetTPage(CB[4 + ((cc >> 4) & 0x1)] >> 16);
end:
if(command->func[abr][TexMode]) if(command->func[abr][TexMode])
command->func[abr][TexMode | (MaskEvalAND ? 0x4 : 0x0)](this, CB); command->func[abr][TexMode | (MaskEvalAND ? 0x4 : 0x0)](this, CB);
} }