mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
Merge branch 'fix_door_freeze' into 'master'
Fix slow AiPackage::getTarget calls (#6136) Closes #6136 See merge request OpenMW/openmw!990 (cherry picked from commit 6a4eeeb39bbe025625273dffc9754d29733e570a) 8d1eb7e2 Fix slow AiPackage::getTarget calls
This commit is contained in:
parent
d6a2838c8b
commit
74aa7cdd48
2 changed files with 6 additions and 0 deletions
|
@ -130,6 +130,7 @@
|
||||||
Bug #6036: OpenMW-CS: Terrain selection at the border of cells omits certain corner vertices
|
Bug #6036: OpenMW-CS: Terrain selection at the border of cells omits certain corner vertices
|
||||||
Bug #6043: Actor can have torch missing when torch animation is played
|
Bug #6043: Actor can have torch missing when torch animation is played
|
||||||
Bug #6047: Mouse bindings can be triggered during save loading
|
Bug #6047: Mouse bindings can be triggered during save loading
|
||||||
|
Bug #6136: Game freezes when NPCs try to open doors that are about to be closed
|
||||||
Feature #390: 3rd person look "over the shoulder"
|
Feature #390: 3rd person look "over the shoulder"
|
||||||
Feature #832: OpenMW-CS: Handle deleted references
|
Feature #832: OpenMW-CS: Handle deleted references
|
||||||
Feature #1536: Show more information about level on menu
|
Feature #1536: Show more information about level on menu
|
||||||
|
|
|
@ -55,6 +55,11 @@ MWWorld::Ptr MWMechanics::AiPackage::getTarget() const
|
||||||
|
|
||||||
if (mTargetActorId == -1)
|
if (mTargetActorId == -1)
|
||||||
{
|
{
|
||||||
|
if (mTargetActorRefId.empty())
|
||||||
|
{
|
||||||
|
mTargetActorId = -2;
|
||||||
|
return MWWorld::Ptr();
|
||||||
|
}
|
||||||
MWWorld::Ptr target = MWBase::Environment::get().getWorld()->searchPtr(mTargetActorRefId, false);
|
MWWorld::Ptr target = MWBase::Environment::get().getWorld()->searchPtr(mTargetActorRefId, false);
|
||||||
if (target.isEmpty())
|
if (target.isEmpty())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue