Don't attach rope to vessel with rope already attached.

This commit is contained in:
Steve 2016-03-09 23:25:12 +00:00
parent 7789d3ab64
commit 1a4b5c679c
1 changed files with 1 additions and 1 deletions

View File

@ -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);