diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-06 18:19:51 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-06 19:16:19 +0100 |
commit | 1d256ce08004115e95813ca5496baaf9ad9d225c (patch) | |
tree | e8dd5f11d65cdfc905cdb4f6a7be9807d0d3965e /crawl-ref | |
parent | 30e93ba6eaa9012f8aafef9e6d250349338737c3 (diff) | |
download | crawl-ref-1d256ce08004115e95813ca5496baaf9ad9d225c.tar.gz crawl-ref-1d256ce08004115e95813ca5496baaf9ad9d225c.zip |
Make "int rain()" take a const coord_def&.
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/spells2.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/spells2.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index a21d7bcc56..f35a9e1f49 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -2241,7 +2241,7 @@ bool plant_ring_from_fruit() // chance of spawning plants or fungus on unoccupied dry floor tiles // outside of the rainfall area. Return the number of plants/fungi // created. -int rain(coord_def & target) +int rain(const coord_def &target) { int spawned_count = 0; for (radius_iterator rad(target, LOS_RADIUS, true, true, true); rad; ++rad) diff --git a/crawl-ref/source/spells2.h b/crawl-ref/source/spells2.h index 06e4e70452..124032f9f4 100644 --- a/crawl-ref/source/spells2.h +++ b/crawl-ref/source/spells2.h @@ -35,7 +35,7 @@ bool sunlight(); bool prioritise_adjacent(coord_def & target, std::vector<coord_def> & candidates); bool plant_ring_from_fruit(); -int rain(coord_def & target); +int rain(const coord_def &target); int corpse_spores(beh_type behavior = BEH_FRIENDLY); bool evolve_flora(); |