CopySprites - turn into do-while loop getting rid of the goto at

the end
This commit is contained in:
twinaphex
2014-12-09 14:08:12 +01:00
parent 5d8885b916
commit 0604e89644

View File

@@ -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) {