mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-20 16:10:52 +00:00
- Blood: Fix bad angle direction in aiChooseDirection()
.
This commit is contained in:
parent
2b5422cc53
commit
a8f7b3f6fe
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ void aiChooseDirection(DBloodActor* actor, DAngle direction)
|
|||
double t1 = actor->vel.X * nCos + actor->vel.Y * nSin;
|
||||
|
||||
int range = FloatToFixed(t1 * (15 / 8192.));
|
||||
DAngle v8 = vc > nullAngle ? DAngle180 / 3 : -DAngle180 / 3;
|
||||
DAngle v8 = vc.Sgn() == -1 ? -DAngle60 : DAngle60;
|
||||
|
||||
if (CanMove(actor, actor->GetTarget(), actor->spr.angle + vc, range))
|
||||
actor->xspr.goalAng = actor->spr.angle + vc;
|
||||
|
|
Loading…
Reference in a new issue