summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/hiscores.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-05-16 09:04:21 +0200
committerRobert Vollmert <rvollmert@gmx.net>2010-05-16 13:40:20 +0200
commitd7cf92ed80edfdc2249d76e2f8261593f59d4c65 (patch)
treeebda9f04aea97039f3cf590443284bad5cacbdf5 /crawl-ref/source/hiscores.h
parent74740e6573a16ae5473f5484ab8d988ae4b14c4f (diff)
downloadcrawl-ref-d7cf92ed80edfdc2249d76e2f8261593f59d4c65.tar.gz
crawl-ref-d7cf92ed80edfdc2249d76e2f8261593f59d4c65.zip
Make scorefile_entry aware of removed backgrounds.
For one, don't assert when reading an unknown background from the score file. Instead, such backgrounds will be output as "unknown" or "??". Then, make the translation functions from job to and from string aware of the old "Thief" and "Death Knight" backgrounds, so they can be printed when crawl lists highscores.
Diffstat (limited to 'crawl-ref/source/hiscores.h')
-rw-r--r--crawl-ref/source/hiscores.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/hiscores.h b/crawl-ref/source/hiscores.h
index 237ee1f1d8..2d8f68e093 100644
--- a/crawl-ref/source/hiscores.h
+++ b/crawl-ref/source/hiscores.h
@@ -72,7 +72,7 @@ private:
std::string name;
long uid; // for multiuser systems
species_type race;
- job_type cls;
+ int job; // job_type + legacy values
std::string race_class_name; // overrides race & cls if non-empty.
char lvl; // player level.
char best_skill; // best skill #