summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-27 02:27:57 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-27 02:27:57 +0000
commit431d2a497f4ab751f659caf9e2631a286e9368f9 (patch)
tree6fcd8db88fb99a923dc6a0ffd1c0622c6830472c /crawl-ref/source/effects.cc
parentee3f044497c25d264556622d114e59c1d278e1e8 (diff)
downloadcrawl-ref-431d2a497f4ab751f659caf9e2631a286e9368f9.tar.gz
crawl-ref-431d2a497f4ab751f659caf9e2631a286e9368f9.zip
Apply Josh's patch to fix a shadowed variable, and also add whitespace
fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3889 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index 1285909186..0913e3a9ba 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -2876,8 +2876,8 @@ static void _maybe_restart_fountain_flow(const int x, const int y,
return;
}
- int i = 0;
- while (tries > i++)
+ int t = 0;
+ while (tries > t++)
{
if (!one_chance_in(100))
continue;
@@ -2885,14 +2885,14 @@ static void _maybe_restart_fountain_flow(const int x, const int y,
// make it start flowing again
grd[x][y] = static_cast<dungeon_feature_type> (grid
- (DNGN_DRY_FOUNTAIN_BLUE - DNGN_FOUNTAIN_BLUE));
-
+
if ( is_terrain_seen(coord_def(x,y)) )
set_envmap_obj(x, y, grd[x][y]);
// clean bloody floor
if (is_bloodcovered(x,y))
env.map[x][y].property = FPROP_NONE;
-
+
// chance of cleaning adjacent squares
for (int i = -1; i <= 1; i++)
for (int j =-1; j <= 1; j++)