Merge pull request #2793 from Capostrophic/distancebias

Pick the correct aggressive actor in fight distance bias calculation
pull/578/head
Bret Curtis 5 years ago committed by GitHub
commit e791e65684
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save