From 1a4b5c679ca89e9bebc8364d6dfc3d4a88b5e566 Mon Sep 17 00:00:00 2001 From: Steve Date: Wed, 9 Mar 2016 23:25:12 +0000 Subject: [PATCH] Don't attach rope to vessel with rope already attached. --- src/battle/ai.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle/ai.c b/src/battle/ai.c index dbd07f9..f6c7359 100644 --- a/src/battle/ai.c +++ b/src/battle/ai.c @@ -719,7 +719,7 @@ static int nearTowableCraft(void) for (i = 0, e = candidates[i] ; e != NULL ; e = candidates[++i]) { - if ((e->flags & (EF_DISABLED|EF_MISSION_TARGET)) == (EF_DISABLED|EF_MISSION_TARGET)) + if ((e->flags & (EF_DISABLED|EF_MISSION_TARGET)) == (EF_DISABLED|EF_MISSION_TARGET) && (e->flags & EF_ROPED_ATTACHED) == 0) { distance = getDistance(self->x, self->y, e->x, e->y);