[Client] Rename searchPtrViaRefIndex into searchPtrViaUniqueIndex

remotes/1728160796594174844/tmp_0.7.0-alpha
David Cernat 7 years ago
parent 09da24f1ea
commit 6c1173d598

@ -189,7 +189,7 @@ namespace MWBase
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
*/

@ -261,7 +261,7 @@ void DedicatedActor::setAi()
else if (mwmp::Main::get().getCellController()->isDedicatedActor(aiTarget.refNum, aiTarget.mpNum))
targetPtr = mwmp::Main::get().getCellController()->getDedicatedActor(aiTarget.refNum, aiTarget.mpNum)->getPtr();
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)
{

@ -734,7 +734,7 @@ namespace MWWorld
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());
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
*/
Ptr searchPtrViaRefIndex(int refNum, int mpNum) override;
Ptr searchPtrViaUniqueIndex(int refNum, int mpNum) override;
/*
End of tes3mp addition
*/

Loading…
Cancel
Save