From d2412c2dcb5399723f5e43f85d2e4582a3493c84 Mon Sep 17 00:00:00 2001 From: Steve Date: Wed, 13 Apr 2016 11:46:23 +0100 Subject: [PATCH] Restore speed of disabled entity when being towed. --- src/battle/rope.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/battle/rope.c b/src/battle/rope.c index fbe9d1c..3b1e85b 100644 --- a/src/battle/rope.c +++ b/src/battle/rope.c @@ -38,10 +38,10 @@ void attachRope(void) if (distance > 0 && distance <= self->separationRadius) { self->towing = e; - e->owner = self; - self->aiFlags |= AIF_GOAL_JUMPGATE; + e->owner = self; + e->speed = 1; e->flags |= EF_RETREATING; e->flags |= EF_ROPED_ATTACHED; @@ -108,6 +108,7 @@ void cutRope(Entity *e) { e->towing->flags &= ~EF_RETREATING; e->towing->flags &= ~EF_ROPED_ATTACHED; + e->towing->speed = 0; e->towing = NULL; } }