diff --git a/source/games/duke/src/actors_d.cpp b/source/games/duke/src/actors_d.cpp index b8850354b..d950c1ec2 100644 --- a/source/games/duke/src/actors_d.cpp +++ b/source/games/duke/src/actors_d.cpp @@ -303,7 +303,7 @@ void hitradius_d(DDukeActor* actor, int r, int hp1, int hp2, int hp3, int h continue; } - double dist = (actor->getPosWithOffsetZ() - act2->spr.pos).Length(); + double dist = (act2->getPosWithOffsetZ() - actor->spr.pos).Length(); if (dist < radius && cansee(act2->spr.pos.plusZ(-8), act2->sector(), actor->spr.pos.plusZ(-12), actor->sector())) { diff --git a/source/games/duke/src/actors_r.cpp b/source/games/duke/src/actors_r.cpp index 1873a86da..ecc45f194 100644 --- a/source/games/duke/src/actors_r.cpp +++ b/source/games/duke/src/actors_r.cpp @@ -243,7 +243,7 @@ void hitradius_r(DDukeActor* actor, int r, int hp1, int hp2, int hp3, int h continue; } - double dist = (actor->getPosWithOffsetZ() - act2->spr.pos).Length(); + double dist = (act2->getPosWithOffsetZ() - actor->spr.pos).Length(); if (dist < radius && cansee(act2->spr.pos.plusZ(-8), act2->sector(), actor->spr.pos.plusZ(-12), actor->sector())) {