From 8dc1522c4d9e3fecdecbdf9cbb4cc909779e0964 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Mon, 25 Jun 2007 17:04:37 +0000 Subject: SP_ELF stubbed for log/scorefile compatibility. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1652 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 17946f615c..cba3505d0f 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -406,6 +406,7 @@ bool player_genus(unsigned char which_genus, unsigned char species) case SP_GREY_ELF: case SP_DEEP_ELF: case SP_SLUDGE_ELF: + case SP_ELF: return (which_genus == GENPC_ELVEN); case SP_HILL_DWARF: @@ -2789,8 +2790,7 @@ void level_change(void) modify_stat(STAT_RANDOM, 1, false); break; - case NUM_SPECIES: - case SP_UNKNOWN: + default: break; } } @@ -4040,7 +4040,7 @@ void set_mp(int new_amount, bool max_too) static const char * Species_Abbrev_List[ NUM_SPECIES ] = - { "XX", "Hu", "HE", "GE", "DE", "SE", "HD", "MD", "Ha", + { "XX", "Hu", "El", "HE", "GE", "DE", "SE", "HD", "MD", "Ha", "HO", "Ko", "Mu", "Na", "Gn", "Og", "Tr", "OM", "Dr", "Dr", "Dr", "Dr", "Dr", "Dr", "Dr", "Dr", "Dr", "Dr", "Dr", "Dr", "Ce", "DG", "Sp", "Mi", "DS", "Gh", "Ke", "Mf" }; @@ -4048,6 +4048,7 @@ static const char * Species_Abbrev_List[ NUM_SPECIES ] = int get_species_index_by_abbrev( const char *abbrev ) { int i; + ASSERT(ARRAYSIZE(Species_Abbrev_List) == NUM_SPECIES); for (i = SP_HUMAN; i < NUM_SPECIES; i++) { if (tolower( abbrev[0] ) == tolower( Species_Abbrev_List[i][0] ) -- cgit v1.2.3-54-g00ecf