|
|
@ -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. */
|
|
|
|
/* map handling, like generate and load maps. */
|
|
|
|
|
|
|
|
|
|
|
|
#include "bomberclone.h"
|
|
|
|
#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 */
|
|
|
|
/* 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) {
|
|
|
|
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;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|