|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
/* $Id: single.c,v 1.83 2005/01/30 16:53:37 stpohle Exp $ */
|
|
|
|
|
/* $Id: single.c,v 1.84 2005/02/14 20:09:19 stpohle Exp $ */
|
|
|
|
|
/* single player */
|
|
|
|
|
|
|
|
|
|
#include "basic.h"
|
|
|
|
@ -7,7 +7,6 @@
|
|
|
|
|
#include "player.h"
|
|
|
|
|
#include "single.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* start a single player game and prepare everything for the game */
|
|
|
|
|
void
|
|
|
|
|
single_game_new ()
|
|
|
|
@ -258,6 +257,12 @@ ai_bombpoints (_point pos, int range)
|
|
|
|
|
r;
|
|
|
|
|
_point p;
|
|
|
|
|
|
|
|
|
|
if (pos.x < 0 || pos.x >= MAX_FIELDSIZE_X || pos.y < 0 || pos.y >= MAX_FIELDSIZE_Y) {
|
|
|
|
|
printf ("WARNING: ai_bombpoints: pos out of range.\n");
|
|
|
|
|
printf (" pos.x=%d pos.y=%d range=%d\n", pos.x, pos.y, range);
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (map.field[pos.x][pos.y].type != FT_block && map.field[pos.x][pos.y].type != FT_stone
|
|
|
|
|
&& ai_checkfield (pos.x, pos.y)) {
|
|
|
|
|
for (d = 0; d < 4; d++) {
|
|
|
|
|