mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-29 15:42:03 +00:00
Update to 9/25 Lua script
This commit is contained in:
parent
b120193eb7
commit
b180fd7c91
1 changed files with 6 additions and 4 deletions
10
src/b_bot.c
10
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;
|
cmd->forwardmove = 50;
|
||||||
spinmode = true;
|
spinmode = true;
|
||||||
}
|
}
|
||||||
else if (dist < touchdist && !bmom
|
else if (dist < touchdist)
|
||||||
&& (!(bot->pflags & PF_SPINNING) || (bot->dashspeed && bot->pflags & PF_SPINNING)))
|
|
||||||
{
|
{
|
||||||
cmd->angleturn = (sonic->angle - tails->angle) >> FRACBITS;
|
if (!bmom && (!(bot->pflags & PF_SPINNING) || (bot->dashspeed && bot->pflags & PF_SPINNING)))
|
||||||
spin = true;
|
{
|
||||||
|
cmd->angleturn = (sonic->angle - tails->angle) >> FRACBITS;
|
||||||
|
spin = true;
|
||||||
|
}
|
||||||
spinmode = true;
|
spinmode = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue