mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-30 21:32:42 +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
@ -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…
x
Reference in New Issue
Block a user