From 4412160c9f7d6410f7974e6daf1027716547cceb Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Fri, 6 Nov 2009 19:11:08 +0100 Subject: 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. --- crawl-ref/source/effects.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'crawl-ref/source/effects.h') 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 & ring_points, - coord_def & origin, - mgen_data & prototype, - int n_arcs, - int arc_occupancy, - int & seen_count); +int place_ring(std::vector& 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 > &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); -- cgit v1.2.3-54-g00ecf