diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-07-06 01:31:24 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-07-06 10:43:56 +0200 |
commit | 725b7bd79f2c28aba188ae0768bb5bbb5e416fa0 (patch) | |
tree | 3c459191729651f11d6a32c9464035698e675ab8 /crawl-ref/source/los.cc | |
parent | 80a2d8a18ee93dfa3d541b71ff1eac53d737499c (diff) | |
download | crawl-ref-725b7bd79f2c28aba188ae0768bb5bbb5e416fa0.tar.gz crawl-ref-725b7bd79f2c28aba188ae0768bb5bbb5e416fa0.zip |
For functions with names starting with _, actually declare them static.
Diffstat (limited to 'crawl-ref/source/los.cc')
-rw-r--r-- | crawl-ref/source/los.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/los.cc b/crawl-ref/source/los.cc index 04ad7d1dc9..8dde2d3b5c 100644 --- a/crawl-ref/source/los.cc +++ b/crawl-ref/source/los.cc @@ -256,7 +256,7 @@ struct cellray // This determines which ray is considered better by find_ray, // used with list::sort. // Returns true if a is strictly better than b, false else. -bool _is_better(const cellray& a, const cellray& b) +static bool _is_better(const cellray& a, const cellray& b) { // Only compare cellrays with equal target. ASSERT(a.target() == b.target()); @@ -279,7 +279,7 @@ enum compare_type // Check whether one of the passed cellrays is a subray of the // other in terms of footprint. -compare_type _compare_cellrays(const cellray& a, const cellray& b) +static compare_type _compare_cellrays(const cellray& a, const cellray& b) { if (a.target() != b.target()) return C_NEITHER; @@ -566,7 +566,7 @@ void cellray::calc_params() // Find ray in positive quadrant. // opc has been translated for this quadrant. // XXX: Allow finding ray of minimum opacity. -bool _find_ray_se(const coord_def& target, ray_def& ray, +static bool _find_ray_se(const coord_def& target, ray_def& ray, const opacity_func& opc, const circle_def& bds, bool cycle) { @@ -814,7 +814,7 @@ bool cell_see_cell(const coord_def& p1, const coord_def& p2) // Smoke will now only block LOS after two cells of smoke. This is // done by updating with a second array. -void _losight_quadrant(los_grid& sh, const los_param& dat, int sx, int sy) +static void _losight_quadrant(los_grid& sh, const los_param& dat, int sx, int sy) { const unsigned int num_cellrays = cellray_ends.size(); |