Code: Show/Hide _listnode <Player> *parse = playerlist->head;
short wbCount = 0; short terrCount = 0; while (parse) { if (parse->item->ship == SHIP_Warbird) { wbCount++; } else if (parse->item->ship == SHIP_Terrier) { terrCount++; } parse = parse->next; if (parse == playerlist->head) break; } |