mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 06:53:53 +00:00
Fixed missed AiPackageTypeId::Wander 'fix'
This commit is contained in:
parent
2d23dad2bc
commit
1db58575c8
1 changed files with 1 additions and 1 deletions
|
@ -415,7 +415,7 @@ DetourNavigator::AreaCosts MWMechanics::AiPackage::getAreaCosts(const MWWorld::P
|
||||||
if (flags & DetourNavigator::Flag_walk)
|
if (flags & DetourNavigator::Flag_walk)
|
||||||
{
|
{
|
||||||
float walkCost;
|
float walkCost;
|
||||||
if (getTypeId() == TypeIdWander)
|
if (getTypeId() == AiPackageTypeId::Wander)
|
||||||
walkCost = 1.0 / actorClass.getWalkSpeed(actor);
|
walkCost = 1.0 / actorClass.getWalkSpeed(actor);
|
||||||
else
|
else
|
||||||
walkCost = 1.0 / actorClass.getRunSpeed(actor);
|
walkCost = 1.0 / actorClass.getRunSpeed(actor);
|
||||||
|
|
Loading…
Reference in a new issue