|
|
@ -1,4 +1,4 @@
|
|
|
|
/* $Id: single.c,v 1.24 2003/05/29 17:43:37 stpohle Exp $ */
|
|
|
|
/* $Id: single.c,v 1.25 2003/05/29 17:48:11 stpohle Exp $ */
|
|
|
|
/* single player */
|
|
|
|
/* single player */
|
|
|
|
|
|
|
|
|
|
|
|
#include "basic.h"
|
|
|
|
#include "basic.h"
|
|
|
@ -398,8 +398,11 @@ ai_findbestbombdir (_point pos, int dir, int range)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bestd = 0;
|
|
|
|
bestd = 0;
|
|
|
|
|
|
|
|
if (maxpoints > 2)
|
|
|
|
|
|
|
|
maxpoints--;
|
|
|
|
|
|
|
|
|
|
|
|
for (d = 0; d < 5; d++)
|
|
|
|
for (d = 0; d < 5; d++)
|
|
|
|
if (points[d] >= (maxpoints-1))
|
|
|
|
if (points[d] >= maxpoints)
|
|
|
|
bestd |= (1 << d);
|
|
|
|
bestd |= (1 << d);
|
|
|
|
|
|
|
|
|
|
|
|
/* prevent from turning around */
|
|
|
|
/* prevent from turning around */
|
|
|
|