summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/sprint.cc
diff options
context:
space:
mode:
authorDarshan Shaligram <dshaligram@users.sourceforge.net>2010-07-03 23:53:19 +0530
committerDarshan Shaligram <dshaligram@users.sourceforge.net>2010-07-04 00:06:06 +0530
commit627fa5a1401f74efdd2632ed6872a1fe2075cde7 (patch)
tree919865e6aa69c080482302a2cea8bbd3cb8127f5 /crawl-ref/source/sprint.cc
parent46c3bdfbb600940b5de1c4a9e9750f247568facf (diff)
downloadcrawl-ref-627fa5a1401f74efdd2632ed6872a1fe2075cde7.tar.gz
crawl-ref-627fa5a1401f74efdd2632ed6872a1fe2075cde7.zip
Allow selecting Sprint maps by map desc where available (dpeg).
Needs work; the menu column size is probably too small for Sprint map names.
Diffstat (limited to 'crawl-ref/source/sprint.cc')
-rw-r--r--crawl-ref/source/sprint.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/crawl-ref/source/sprint.cc b/crawl-ref/source/sprint.cc
index b3832d161f..b54b767537 100644
--- a/crawl-ref/source/sprint.cc
+++ b/crawl-ref/source/sprint.cc
@@ -75,14 +75,9 @@ bool sprint_veto_random_abyss_monster(monster_type type)
return random2(20) > (int)get_monster_data(type)->hpdice[0];
}
-std::vector<std::string> get_sprint_maps()
+mapref_vector get_sprint_maps()
{
- // TODO: provide descriptions?
- std::vector<map_def> mapdefs = find_maps_for_tag("sprint");
- std::vector<std::string> maps;
- for (unsigned int i = 0; i < mapdefs.size(); ++i)
- maps.push_back(mapdefs[i].name);
- return (maps);
+ return find_maps_for_tag("sprint");
}
// We could save this in crawl_state instead.