summaryrefslogtreecommitdiff
path: root/src/generate.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-06-26 22:07:10 +0200
committerBardur Arantsson <bardur@scientician.net>2012-06-26 22:10:06 +0200
commitae546bfca75294edebbc562640cc90f534e8e6b5 (patch)
tree31fdaff9aac5060c33eb54dca57b4f1378581b00 /src/generate.c
parentb533f5e8eb893edc447c47cd43c0e681e9d58825 (diff)
Remove bogus #if 1 / #endif pragmas
Diffstat (limited to 'src/generate.c')
-rw-r--r--src/generate.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/generate.c b/src/generate.c
index bedd169d..313d9498 100644
--- a/src/generate.c
+++ b/src/generate.c
@@ -586,8 +586,6 @@ void place_new_way(int *y, int *x)
/* Check if it connects to current dungeon */
while (in_bounds(yy, xx))
{
-#if 1
-
/* Check grids ahead */
if (is_safe_floor(yy + y0, xx + x0)) ok = TRUE;
@@ -595,21 +593,6 @@ void place_new_way(int *y, int *x)
if (is_safe_floor(yy + y1, xx + x1)) ok = TRUE;
if (is_safe_floor(yy + y2, xx + x2)) ok = TRUE;
-#else
-
- /*
- * This can create unconnected sections if it bumps into a
- * non-penetrating streamer
- */
- /* Check grids ahead */
- if (cave_floor_bold(yy + y0, xx + x0)) ok = TRUE;
-
- /* Check side grids */
- if (cave_floor_bold(yy + y1, xx + x1)) ok = TRUE;
- if (cave_floor_bold(yy + y2, xx + x2)) ok = TRUE;
-
-#endif
-
/* Connected */
if (ok) break;