mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-28 19:21:04 +00:00
AiWander: reset spawn position, if an actor was moved to another cell (bug #4010)
This commit is contained in:
parent
0e648222b8
commit
91adfc9fc0
@ -200,6 +200,7 @@ namespace MWMechanics
|
|||||||
stopWalking(actor, storage);
|
stopWalking(actor, storage);
|
||||||
currentCell = actor.getCell();
|
currentCell = actor.getCell();
|
||||||
storage.mPopulateAvailableNodes = true;
|
storage.mPopulateAvailableNodes = true;
|
||||||
|
mStoredInitialActorPosition = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
mRemainingDuration -= ((duration*MWBase::Environment::get().getWorld()->getTimeScaleFactor()) / 3600);
|
mRemainingDuration -= ((duration*MWBase::Environment::get().getWorld()->getTimeScaleFactor()) / 3600);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user