On 1/3/2011 14:01, Mike Caron wrote:
On 1/3/2011 12:56, [email protected] wrote:
teeemcee
2011-01-03 09:56:57 -0800 (Mon, 03 Jan 2011)
299
Rewrite inefficient looping with halirious comment in guessdefaultpals
Here is the amazing comment:
FOR j = 0 TO gen(genMaxHero) 'I reversed the loops, because it's more
efficient
FOR i = 0 TO sets 'to do the file I/O in the outer loop
loadherodata @her, j
...
NEXT
NEXT
Whoops! Judging by the diff between 1188 and 1189 (when that change was
made), I did that at the same time I rewrote everything to use the hero
UDT instead of arrays.
To be fair, the comment /is/ accurate. It simply didn't reflect reality. :)
And, actually, just looking at the code now, I see the inner loop
actually isn't needed at all (as you rewrote)
---
U wip/common.bas
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org