diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-22 19:24:02 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-22 19:24:02 +0000 |
commit | 2f5785ca4f55ddfd7365d2888475ba9c28032c96 (patch) | |
tree | 9875f61a2be15bab56b0edba20153900ca15c85a /crawl-ref/source/store.cc | |
parent | 93410abd4eabdd55afb70c42f565f26686b9a7f1 (diff) | |
download | crawl-ref-2f5785ca4f55ddfd7365d2888475ba9c28032c96.tar.gz crawl-ref-2f5785ca4f55ddfd7365d2888475ba9c28032c96.zip |
Go all the way and also store a randart's name and description in
the props table. No more re-rolling every time we need the name, yay! :D
Should be save file compatible, and I also modified my previous change
to be save file compatible, after all. Not entirely sure this works,
though, as I didn't have any old saved games to test this with.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4479 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/store.cc')
-rw-r--r-- | crawl-ref/source/store.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/store.cc b/crawl-ref/source/store.cc index 6feed39058..70ff742ddb 100644 --- a/crawl-ref/source/store.cc +++ b/crawl-ref/source/store.cc @@ -251,7 +251,7 @@ void CrawlStoreValue::unset(bool force) case SV_NONE: ASSERT(false); - + case NUM_STORE_VAL_TYPES: ASSERT(false); } @@ -417,7 +417,7 @@ void CrawlStoreValue::write(writer &th) const case SV_NONE: ASSERT(false); - + case NUM_STORE_VAL_TYPES: ASSERT(false); } @@ -497,7 +497,7 @@ void CrawlStoreValue::read(reader &th) case SV_NONE: ASSERT(false); - + case NUM_STORE_VAL_TYPES: ASSERT(false); } @@ -1192,7 +1192,7 @@ CrawlStoreValue& CrawlHashTable::get_value(const std::string &key) if (i == hash_map.end()) { - hash_map[key] = CrawlStoreValue(default_flags); + hash_map[key] = CrawlStoreValue(default_flags); CrawlStoreValue &val = hash_map[key]; if (type != SV_NONE) |