… | |
… | |
1466 | |
1466 | |
1467 | if (cp[strlen (cp) - 1] == '\n') |
1467 | if (cp[strlen (cp) - 1] == '\n') |
1468 | cp[strlen (cp) - 1] = '\0'; |
1468 | cp[strlen (cp) - 1] = '\0'; |
1469 | |
1469 | |
1470 | /* set creature race to race value */ |
1470 | /* set creature race to race value */ |
1471 | if ((mon = find_archetype (cp)) == NULL) |
1471 | if ((mon = archetype::find (cp)) == NULL) |
1472 | LOG (llevError, "\nCreature %s in race file lacks archetype", cp); |
1472 | LOG (llevError, "\nCreature %s in race file lacks archetype", cp); |
1473 | else |
1473 | else |
1474 | { |
1474 | { |
1475 | if (set_race && (!mon->clone.race || strcmp (mon->clone.race, race))) |
1475 | if (set_race && (!mon->clone.race || strcmp (mon->clone.race, race))) |
1476 | { |
1476 | { |