summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-25 17:04:37 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-25 17:04:37 +0000
commit8dc1522c4d9e3fecdecbdf9cbb4cc909779e0964 (patch)
tree4f12775dce7c97ee2a360768563bdd38a7b84597 /crawl-ref/source/player.cc
parentc66f8a865056e7e2e8a9461d23691665b82dd59a (diff)
downloadcrawl-ref-8dc1522c4d9e3fecdecbdf9cbb4cc909779e0964.tar.gz
crawl-ref-8dc1522c4d9e3fecdecbdf9cbb4cc909779e0964.zip
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
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc7
1 files changed, 4 insertions, 3 deletions
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] )