Quote:
Originally Posted by Supremache
This is not an answer to your question but I see you're doing something wrong while create the loop
PHP Code:
// The loop should not start from zero because it is an unkown number make 'i = 1' or remove '=' pickSiteByIndex(selected) { for(new i; i <= g_iMaxPossibleIndexByEnt; i++) { if(i != selected) { removeSiteByIndex(i, false) } } }
|
No its not, first item index in an array is zero, zero is always the first id of a cell. ( Memory address + index )
Now for an answer for the TOPIC, its very obvious the first method is the best for the least CPU usage.
Also show the function where you increment this variable g_iMaxPossibleIndexByEnt
__________________