From 405c63f44748629793e5b9bd27bed1c3cf506d73 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 6 Aug 2014 23:44:47 +0200 Subject: [PATCH] this old race alias stuff has been dead code for years. --- src/kernel/race.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/kernel/race.c b/src/kernel/race.c index 110dd4c5a..508b2d00b 100644 --- a/src/kernel/race.c +++ b/src/kernel/race.c @@ -146,26 +146,14 @@ void free_races(void) { } } -static const char *racealias[][2] = { - {"uruk", "orc"}, /* there was a time when the orc race was called uruk (and there were other orcs). That was really confusing */ - {"skeletton lord", "skeleton lord"}, /* we once had a typo here. it is fixed */ - {NULL, NULL} -}; - static race *rc_find_i(const char *name) { const char *rname = name; race *rc = races; - int i; - for (i = 0; racealias[i][0]; ++i) { - if (strcmp(racealias[i][0], name) == 0) { - rname = racealias[i][1]; - break; - } + while (rc && !strcmp(rname, rc->_name[0]) == 0) { + rc = rc->next; } - while (rc && !strcmp(rname, rc->_name[0]) == 0) - rc = rc->next; return rc; }