forked from teamnwah/openmw-tes3coop
[Client] Rename searchPtrViaRefIndex into searchPtrViaUniqueIndex
This commit is contained in:
parent
09da24f1ea
commit
6c1173d598
4 changed files with 4 additions and 4 deletions
|
@ -189,7 +189,7 @@ namespace MWBase
|
||||||
|
|
||||||
Make it possible to find a Ptr in any active cell based on its refNum and mpNum
|
Make it possible to find a Ptr in any active cell based on its refNum and mpNum
|
||||||
*/
|
*/
|
||||||
virtual MWWorld::Ptr searchPtrViaRefIndex(int refNum, int mpNum) = 0;
|
virtual MWWorld::Ptr searchPtrViaUniqueIndex(int refNum, int mpNum) = 0;
|
||||||
/*
|
/*
|
||||||
End of tes3mp addition
|
End of tes3mp addition
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -261,7 +261,7 @@ void DedicatedActor::setAi()
|
||||||
else if (mwmp::Main::get().getCellController()->isDedicatedActor(aiTarget.refNum, aiTarget.mpNum))
|
else if (mwmp::Main::get().getCellController()->isDedicatedActor(aiTarget.refNum, aiTarget.mpNum))
|
||||||
targetPtr = mwmp::Main::get().getCellController()->getDedicatedActor(aiTarget.refNum, aiTarget.mpNum)->getPtr();
|
targetPtr = mwmp::Main::get().getCellController()->getDedicatedActor(aiTarget.refNum, aiTarget.mpNum)->getPtr();
|
||||||
else if (aiAction == mwmp::BaseActorList::ACTIVATE)
|
else if (aiAction == mwmp::BaseActorList::ACTIVATE)
|
||||||
targetPtr = MWBase::Environment::get().getWorld()->searchPtrViaRefIndex(aiTarget.refNum, aiTarget.mpNum);
|
targetPtr = MWBase::Environment::get().getWorld()->searchPtrViaUniqueIndex(aiTarget.refNum, aiTarget.mpNum);
|
||||||
|
|
||||||
if (targetPtr)
|
if (targetPtr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -734,7 +734,7 @@ namespace MWWorld
|
||||||
|
|
||||||
Make it possible to find a Ptr in any active cell based on its refNum and mpNum
|
Make it possible to find a Ptr in any active cell based on its refNum and mpNum
|
||||||
*/
|
*/
|
||||||
Ptr World::searchPtrViaRefIndex(int refNum, int mpNum)
|
Ptr World::searchPtrViaUniqueIndex(int refNum, int mpNum)
|
||||||
{
|
{
|
||||||
for (Scene::CellStoreCollection::const_iterator iter(mWorldScene->getActiveCells().begin());
|
for (Scene::CellStoreCollection::const_iterator iter(mWorldScene->getActiveCells().begin());
|
||||||
iter != mWorldScene->getActiveCells().end(); ++iter)
|
iter != mWorldScene->getActiveCells().end(); ++iter)
|
||||||
|
|
|
@ -296,7 +296,7 @@ namespace MWWorld
|
||||||
|
|
||||||
Make it possible to find a Ptr in any active cell based on its refNum and mpNum
|
Make it possible to find a Ptr in any active cell based on its refNum and mpNum
|
||||||
*/
|
*/
|
||||||
Ptr searchPtrViaRefIndex(int refNum, int mpNum) override;
|
Ptr searchPtrViaUniqueIndex(int refNum, int mpNum) override;
|
||||||
/*
|
/*
|
||||||
End of tes3mp addition
|
End of tes3mp addition
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue