mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:23:52 +00:00
Merge pull request #2793 from Capostrophic/distancebias
Pick the correct aggressive actor in fight distance bias calculation
This commit is contained in:
commit
e791e65684
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ namespace MWMechanics
|
|||
osg::Vec3f pos1 (actor1.getRefData().getPosition().asVec3());
|
||||
osg::Vec3f pos2 (actor2.getRefData().getPosition().asVec3());
|
||||
|
||||
float d = getAggroDistance(actor2, pos1, pos2);
|
||||
float d = getAggroDistance(actor1, pos1, pos2);
|
||||
|
||||
static const int iFightDistanceBase = MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>().find(
|
||||
"iFightDistanceBase")->mValue.getInteger();
|
||||
|
|
Loading…
Reference in a new issue