From 228c4884f742a40f427a6a2a5e633fd05d08ecaa Mon Sep 17 00:00:00 2001 From: stpohle Date: Thu, 29 May 2003 17:48:11 +0000 Subject: [PATCH] another little change with the ai --- src/single.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 */