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; }