diff --git a/source/games/blood/src/aiburn.cpp b/source/games/blood/src/aiburn.cpp index ee74eaa8c..e55e673a6 100644 --- a/source/games/blood/src/aiburn.cpp +++ b/source/games/blood/src/aiburn.cpp @@ -85,10 +85,10 @@ static void burnThinkGoto(DBloodActor* actor) assert(actor->spr.type >= kDudeBase && actor->spr.type < kDudeMax); DUDEINFO* pDudeInfo = getDudeInfo(actor->spr.type); auto dvec = actor->xspr.TargetPos.XY() - actor->spr.pos.XY(); - int nAngle = getangle(dvec); + DAngle nAngle = VecToAngle(dvec); double nDist = dvec.Length(); - aiChooseDirection(actor, DAngle::fromBuild(nAngle)); - if (nDist < 32 && abs(actor->int_ang() - nAngle) < pDudeInfo->periphery) + aiChooseDirection(actor, nAngle); + if (nDist < 32 && absangle(actor->spr.angle, nAngle) < pDudeInfo->Periphery()) { switch (actor->spr.type) {