From b180fd7c91110295eaef89ad33962f5aa60fb7bc Mon Sep 17 00:00:00 2001 From: lachwright Date: Sat, 5 Oct 2019 03:02:27 +0800 Subject: [PATCH] Update to 9/25 Lua script --- src/b_bot.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/b_bot.c b/src/b_bot.c index be1d9dd60..7d6732365 100644 --- a/src/b_bot.c +++ b/src/b_bot.c @@ -223,11 +223,13 @@ static inline void B_BuildTailsTiccmd(mobj_t *sonic, mobj_t *tails, ticcmd_t *cm cmd->forwardmove = 50; spinmode = true; } - else if (dist < touchdist && !bmom - && (!(bot->pflags & PF_SPINNING) || (bot->dashspeed && bot->pflags & PF_SPINNING))) + else if (dist < touchdist) { - cmd->angleturn = (sonic->angle - tails->angle) >> FRACBITS; - spin = true; + if (!bmom && (!(bot->pflags & PF_SPINNING) || (bot->dashspeed && bot->pflags & PF_SPINNING))) + { + cmd->angleturn = (sonic->angle - tails->angle) >> FRACBITS; + spin = true; + } spinmode = true; } else