mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 17:06:43 +00:00
Fix typo in combat distance
This commit is contained in:
parent
fde6cad24b
commit
180a831e96
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue