diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2010-05-16 09:04:21 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2010-05-16 13:40:20 +0200 |
commit | d7cf92ed80edfdc2249d76e2f8261593f59d4c65 (patch) | |
tree | ebda9f04aea97039f3cf590443284bad5cacbdf5 /crawl-ref/source/hiscores.h | |
parent | 74740e6573a16ae5473f5484ab8d988ae4b14c4f (diff) | |
download | crawl-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.h | 2 |
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 # |