summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-06 19:11:08 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-06 19:16:19 +0100
commit4412160c9f7d6410f7974e6daf1027716547cceb (patch)
treec48612e4bb41b55a8efd36273e5e98cd9f4a4404 /crawl-ref/source/effects.h
parentdef6a88b388cdcf3ac08c2144b9d30f6c8bfb010 (diff)
downloadcrawl-ref-4412160c9f7d6410f7974e6daf1027716547cceb.tar.gz
crawl-ref-4412160c9f7d6410f7974e6daf1027716547cceb.zip
Make some passed references const.
A couple of the Feawn functions were passed read-only arguments (coordinate center, etc.) as non-const references, which leaked out to require you.pos() to be non-const.
Diffstat (limited to 'crawl-ref/source/effects.h')
-rw-r--r--crawl-ref/source/effects.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/effects.h b/crawl-ref/source/effects.h
index fe13baee0f..dd23f6ba67 100644
--- a/crawl-ref/source/effects.h
+++ b/crawl-ref/source/effects.h
@@ -42,17 +42,17 @@ int spawn_corpse_mushrooms(item_def &corpse,
bool distance_as_time = false);
struct mgen_data;
-int place_ring(std::vector<coord_def> & ring_points,
- coord_def & origin,
- mgen_data & prototype,
- int n_arcs,
- int arc_occupancy,
- int & seen_count);
+int place_ring(std::vector<coord_def>& ring_points,
+ const coord_def& origin,
+ mgen_data prototype,
+ int n_arcs,
+ int arc_occupancy,
+ int& seen_count);
// Collect lists of points that are within LOS (under the given losgrid),
// unoccupied, and not solid (walls/statues).
void collect_radius_points(std::vector<std::vector<coord_def> > &radius_points,
- coord_def & origin, env_show_grid & losgrid);
+ const coord_def &origin, const env_show_grid &losgrid);
void random_uselessness(int scroll_slot = -1);