intoK Apprentice
Joined: 18 Feb 2007 Posts: 190
|
Posted: Sun Feb 18, 2007 3:48 pm
optimizing |
;longloop
; #LOO %numrooms {
; #VA _trs {}
; #FO @dexits {
; _trs=%additem(%trim(@stripg(%roomname(%roomlink(%mapvnum(%i),%j)))),@_trs)
; }
; #IF (@nexits == @_trs) {
; #ADDI rlist %mapvnum(%i)
; }
; }
works, but when it have to deal with 30+ rooms it takes way too long for my purposes...
only way i can think of optimizing it is dynamic bin tree, but it requires breaking off second loop from if statement, without breaking off first one.
so is there any way to get out of %j loop w/o killing %i loop? or am i mising some simpler solution
tia |
|