- Duke: Fix incorrect distance value in handle_se28().

This commit is contained in:
Mitchell Richters 2023-10-02 21:08:54 +11:00
parent 2d7ab0f581
commit 9a301d6e06

View file

@ -591,7 +591,7 @@ static void handle_se28(DDukeActor* actor)
const auto pact = p->GetActor();
double dist = (pact->spr.pos.XY() - act2->spr.pos.XY()).LengthSquared();
if (dist < 49*48)
if (dist < 48*48)
{
if (S_CheckActorSoundPlaying(pact, DUKE_LONGTERM_PAIN) < 1)
S_PlayActorSound(DUKE_LONGTERM_PAIN, pact);