426 |
|
/* check for repeats */ |
427 |
|
rept = 0; nrepts = 0; |
428 |
|
for (i = 0; i < nm; i++) { |
429 |
< |
if (ml[i] == sm) { |
429 |
> |
if (ml[i] == sm || !strcmp(ml[i], VOIDID)) { |
430 |
|
rept |= 1<<i; |
431 |
|
nrepts++; |
432 |
+ |
continue; |
433 |
|
} |
434 |
|
for (j = 0; j < i; j++) |
435 |
< |
if (ml[j] == ml[i]) { |
435 |
> |
if (!(rept & 1<<j) && ml[j] == ml[i]) { |
436 |
|
rept |= 1<<j; |
437 |
|
nrepts++; |
438 |
|
} |
439 |
|
} |
440 |
|
/* print antimatter and modlist */ |
441 |
< |
fprintf(fp, "\nvoid antimatter %s\n", openmod); |
441 |
> |
fprintf(fp, "\n%s antimatter %s\n", VOIDID, openmod); |
442 |
|
fprintf(fp, "%d %s", 1+nm-nrepts, sm); |
443 |
|
for (i = 0; i < nm; i++) |
444 |
|
if (!(rept & 1<<i)) |