mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fixed some angle business in the BASH code
This commit is contained in:
parent
67c3d87190
commit
ff6c8063af
1 changed files with 5 additions and 2 deletions
|
|
@ -2460,8 +2460,11 @@ void A_VultureFly(mobj_t *actor)
|
||||||
if (leveltime % 4 == 0)
|
if (leveltime % 4 == 0)
|
||||||
S_StartSound(actor, actor->info->activesound);
|
S_StartSound(actor, actor->info->activesound);
|
||||||
|
|
||||||
|
if (angledif > ANGLE_180)
|
||||||
|
angledif = InvAngle(angledif);
|
||||||
|
|
||||||
// Tweak the target height according to the position.
|
// Tweak the target height according to the position.
|
||||||
if (abs(angledif) < ANGLE_45) // Centered?
|
if (angledif < ANGLE_45) // Centered?
|
||||||
{
|
{
|
||||||
actor->reactiontime = actor->info->reactiontime;
|
actor->reactiontime = actor->info->reactiontime;
|
||||||
if (dxy > 768*FRACUNIT)
|
if (dxy > 768*FRACUNIT)
|
||||||
|
|
@ -2471,7 +2474,7 @@ void A_VultureFly(mobj_t *actor)
|
||||||
{
|
{
|
||||||
actor->reactiontime--;
|
actor->reactiontime--;
|
||||||
|
|
||||||
if (abs(angledif) < ANGLE_90)
|
if (angledif < ANGLE_90)
|
||||||
dz = max(P_FloorzAtPos(actor->target->x, actor->target->y, actor->target->z, 0) - actor->z + min(dxy/2, 192*FRACUNIT), dz);
|
dz = max(P_FloorzAtPos(actor->target->x, actor->target->y, actor->target->z, 0) - actor->z + min(dxy/2, 192*FRACUNIT), dz);
|
||||||
else
|
else
|
||||||
dz = max(P_FloorzAtPos(actor->target->x, actor->target->y, actor->target->z, 0) - actor->z + 232*FRACUNIT, dz);
|
dz = max(P_FloorzAtPos(actor->target->x, actor->target->y, actor->target->z, 0) - actor->z + 232*FRACUNIT, dz);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue