diff --git a/src/single.c b/src/single.c index deede77..aca9c4c 100644 --- a/src/single.c +++ b/src/single.c @@ -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 */ #include "basic.h" @@ -398,8 +398,11 @@ ai_findbestbombdir (_point pos, int dir, int range) } bestd = 0; + if (maxpoints > 2) + maxpoints--; + for (d = 0; d < 5; d++) - if (points[d] >= (maxpoints-1)) + if (points[d] >= maxpoints) bestd |= (1 << d); /* prevent from turning around */