From 4e1e3fe28eaa50c00b982aba675693561af0a5d3 Mon Sep 17 00:00:00 2001 From: stpohle Date: Tue, 10 Feb 2004 23:13:16 +0000 Subject: [PATCH] This fixes the issue of it making incorrect assumptions about the initial range of bombs and placing players in unsafe positions. by dcdillion --- src/map.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map.c b/src/map.c index 9b5215c..7195825 100644 --- a/src/map.c +++ b/src/map.c @@ -1,4 +1,4 @@ -/* $Id: map.c,v 1.23 2004/02/08 01:30:42 stpohle Exp $ */ +/* $Id: map.c,v 1.24 2004/02/10 23:13:16 stpohle Exp $ */ /* map handling, like generate and load maps. */ #include "bomberclone.h" @@ -592,7 +592,7 @@ map_is_possible_start_point(int x, int y) /* calculate the number of adjacent FT_nothing fields in the X and Y directions */ - for (i = 1; i < 4; i++) { + for (i = 1; i < bman.start_range + 2; i++) { if (x_ok_pos) { @@ -638,7 +638,7 @@ map_is_possible_start_point(int x, int y) } } - if ((x_adj >= 3) || (y_adj >= 3)) { + if ((x_adj >= bman.start_range + 1) || (y_adj >= bman.start_range + 1)) { return 1; }