CopySprites - turn into do-while loop getting rid of the goto at
the end
This commit is contained in:
@@ -996,7 +996,7 @@ static void CopySprites(uint8 *target) {
|
|||||||
|
|
||||||
if (rendis & 1) return; //User asked to not display sprites.
|
if (rendis & 1) return; //User asked to not display sprites.
|
||||||
|
|
||||||
loopskie:
|
do
|
||||||
{
|
{
|
||||||
uint32 t = *(uint32*)(sprlinebuf + n);
|
uint32 t = *(uint32*)(sprlinebuf + n);
|
||||||
|
|
||||||
@@ -1052,9 +1052,8 @@ static void CopySprites(uint8 *target) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
n += 4;
|
||||||
n += 4;
|
} while(n);
|
||||||
if (n) goto loopskie;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void FCEUPPU_SetVideoSystem(int w) {
|
void FCEUPPU_SetVideoSystem(int w) {
|
||||||
|
|||||||
Reference in New Issue
Block a user