int i,j, found; for(i=0;i<20;i++) { if(array[i] == 1) { found = 1; break; } } if(found) { for(j=0;j<20;j++) { if(j != i) array[j] = 0; } }
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de