summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-27 17:44:11 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-27 17:44:11 +0000
commit6a2be1555b3d27614a7a5d3a8fd973cebc0865c8 (patch)
tree9f6b6903fc8f580324e04b041dddc3def33e901f /crawl-ref/source/dungeon.cc
parentb3ba50a0dfcba435c3936f5e826329f0067709c5 (diff)
downloadcrawl-ref-6a2be1555b3d27614a7a5d3a8fd973cebc0865c8.tar.gz
crawl-ref-6a2be1555b3d27614a7a5d3a8fd973cebc0865c8.zip
Refix code cleanup (oops.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1668 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r--crawl-ref/source/dungeon.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index 0e8ca8c4b4..a454c25770 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -3893,7 +3893,7 @@ static void place_altar()
if ( numgood < 5*5 || numfloors == 0 )
continue;
- bool mon_there;
+ bool mon_there = false;
for (int i = px - 2; i <= px + 2; i++)
for (int j = py - 2; j <= py + 2; j++)
@@ -4389,12 +4389,12 @@ static char plan_3()
romx2[which_room] = romx1[which_room] + 2 + random2(8);
romy2[which_room] = romy1[which_room] + 2 + random2(8);
- if (exclusive)
- {
- int bx = romx1[which_room], by = romy1[which_room];
- if (count_antifeature_in_box(bx-1,by-1,bx+2,by+2,DNGN_ROCK_WALL))
- continue;
- }
+ if (exclusive && count_antifeature_in_box(romx1[which_room] - 1,
+ romy1[which_room] - 1,
+ romx2[which_room] + 1,
+ romy2[which_room] + 1,
+ DNGN_ROCK_WALL))
+ continue;
replace_area(romx1[which_room], romy1[which_room], romx2[which_room],
romy2[which_room], DNGN_ROCK_WALL, DNGN_FLOOR);