mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
Fix typo in combat distance
This commit is contained in:
parent
fde6cad24b
commit
180a831e96
@ -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…
x
Reference in New Issue
Block a user