diff options
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r-- | crawl-ref/source/misc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index 5c53d6501e..922b5a15ce 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -1975,7 +1975,7 @@ unsigned short get_packed_place() you.level_type ); } -bool single_level_branch( int branch ) +bool single_level_branch( branch_type branch ) { return branch >= 0 && branch < NUM_BRANCHES @@ -2175,7 +2175,7 @@ static const char *shop_types[] = { int str_to_shoptype(const std::string &s) { - if (s == "random") + if (s == "random" || s == "any") return (SHOP_RANDOM); for (unsigned i = 0; i < sizeof(shop_types) / sizeof (*shop_types); ++i) |