|
|
@ -280,7 +280,7 @@ namespace MWMechanics
|
|
|
|
|| actor1.getClass().getCreatureStats(actor1).isDead())
|
|
|
|
|| actor1.getClass().getCreatureStats(actor1).isDead())
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
const ESM::Position& actor1Pos = actor2.getRefData().getPosition();
|
|
|
|
const ESM::Position& actor1Pos = actor1.getRefData().getPosition();
|
|
|
|
const ESM::Position& actor2Pos = actor2.getRefData().getPosition();
|
|
|
|
const ESM::Position& actor2Pos = actor2.getRefData().getPosition();
|
|
|
|
float sqrDist = Ogre::Vector3(actor1Pos.pos).squaredDistance(Ogre::Vector3(actor2Pos.pos));
|
|
|
|
float sqrDist = Ogre::Vector3(actor1Pos.pos).squaredDistance(Ogre::Vector3(actor2Pos.pos));
|
|
|
|
if (sqrDist > 7168*7168)
|
|
|
|
if (sqrDist > 7168*7168)
|
|
|
|