diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-04-28 18:13:36 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-05-07 18:23:26 -0600 |
commit | 3cea9f3ab9860e6cb8fe73101509a060d9e684f0 (patch) | |
tree | e75175dd7ea77790775408d6a8c47190218edca8 /crawl-ref/source/mapdef.cc | |
parent | 91c0a57dfadc772e58c486aea78aae98a18a180f (diff) | |
download | crawl-ref-3cea9f3ab9860e6cb8fe73101509a060d9e684f0.tar.gz crawl-ref-3cea9f3ab9860e6cb8fe73101509a060d9e684f0.zip |
Fix a hiccup with Gozag shops and the sleeping ego.
Part of this is really hacky in order to get afflicted saves to load.
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r-- | crawl-ref/source/mapdef.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc index 7929d57729..0c8ba81207 100644 --- a/crawl-ref/source/mapdef.cc +++ b/crawl-ref/source/mapdef.cc @@ -4791,6 +4791,9 @@ static int _str_to_ego(item_spec &spec, string ego_str) break; case OBJ_MISSILES: + // HACK to get an old save to load; remove me soon? + if (ego_str == "sleeping") + return SPMSL_SLEEP; order = missile_order; break; |