I notice this is used to find a free sprite in DDgui_Update :
QuoteFOR i%=1 TO 4000
GETSPRITESIZE i%, sprsz%, sprsz%
IF sprsz=0
IF spr_bar=0
spr_bar=i
ELSE
spr_char=i
BREAK
ENDIF
ENDIF
NEXT
Might be easier to use GENSPRITE()
:)
That code is from the time before GENSPRITE() :-)
I know - hence the need for improved efficiency :)