summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-04-28 18:13:36 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-05-07 18:23:26 -0600
commit3cea9f3ab9860e6cb8fe73101509a060d9e684f0 (patch)
treee75175dd7ea77790775408d6a8c47190218edca8 /crawl-ref/source/mapdef.cc
parent91c0a57dfadc772e58c486aea78aae98a18a180f (diff)
downloadcrawl-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.cc3
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;