From ae546bfca75294edebbc562640cc90f534e8e6b5 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Tue, 26 Jun 2012 22:07:10 +0200 Subject: Remove bogus #if 1 / #endif pragmas --- src/generate.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/generate.c') 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; -- cgit v1.2.3