mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-11 00:44:33 +00:00
Remove redundant variable
This commit is contained in:
parent
8c4acc69c4
commit
71350c6dff
@ -276,8 +276,7 @@ namespace MWMechanics
|
|||||||
completeManualWalking(actor, storage);
|
completeManualWalking(actor, storage);
|
||||||
}
|
}
|
||||||
|
|
||||||
AiWanderStorage::WanderState& wanderState = storage.mState;
|
if (storage.mState == AiWanderStorage::Wander_MoveNow && storage.mCanWanderAlongPathGrid)
|
||||||
if ((wanderState == AiWanderStorage::Wander_MoveNow) && storage.mCanWanderAlongPathGrid)
|
|
||||||
{
|
{
|
||||||
// Construct a new path if there isn't one
|
// Construct a new path if there isn't one
|
||||||
if(!mPathFinder.isPathConstructed())
|
if(!mPathFinder.isPathConstructed())
|
||||||
@ -293,7 +292,7 @@ namespace MWMechanics
|
|||||||
completeManualWalking(actor, storage);
|
completeManualWalking(actor, storage);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wanderState == AiWanderStorage::Wander_Walking
|
if (storage.mState == AiWanderStorage::Wander_Walking
|
||||||
&& (isDestinationHidden(actor, mPathFinder.getPath().back())
|
&& (isDestinationHidden(actor, mPathFinder.getPath().back())
|
||||||
|| isAreaOccupiedByOtherActor(actor, mPathFinder.getPath().back())))
|
|| isAreaOccupiedByOtherActor(actor, mPathFinder.getPath().back())))
|
||||||
completeManualWalking(actor, storage);
|
completeManualWalking(actor, storage);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user