DDgui_Update

Previous topic - Next topic

MrTAToad

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()

:)

Moru

That code is from the time before GENSPRITE() :-)

MrTAToad

I know - hence the need for improved efficiency :)