1
0
Fork 1
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:
Bret Curtis 2020-04-23 00:09:36 +02:00 committed by GitHub
commit e791e65684
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();