mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-24 05:00:31 -04:00
[Client] Use new exact search with ObjectActivate & ObjectDialogueChoice
This commit is contained in:
parent
646ffc7afe
commit
1cb10cd1f2
@ -349,7 +349,14 @@ void ObjectList::activateObjects(MWWorld::CellStore* cellStore)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
LOG_APPEND(TimedLog::LOG_VERBOSE, "-- Activated object is %s %i-%i", baseObject.refId.c_str(), baseObject.refNum, baseObject.mpNum);
|
LOG_APPEND(TimedLog::LOG_VERBOSE, "-- Activated object is %s %i-%i", baseObject.refId.c_str(), baseObject.refNum, baseObject.mpNum);
|
||||||
ptrFound = cellStore->searchExact(baseObject.refNum, baseObject.mpNum);
|
if (baseObject.refId.empty())
|
||||||
|
{
|
||||||
|
ptrFound = cellStore->searchExact(baseObject.refNum, baseObject.mpNum);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ptrFound = cellStore->searchExactPlus(baseObject.refId, baseObject.refNum, baseObject.mpNum);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ptrFound)
|
if (ptrFound)
|
||||||
@ -991,8 +998,16 @@ void ObjectList::makeDialogueChoices(MWWorld::CellStore* cellStore)
|
|||||||
for (const auto& baseObject : baseObjects)
|
for (const auto& baseObject : baseObjects)
|
||||||
{
|
{
|
||||||
LOG_APPEND(TimedLog::LOG_VERBOSE, "- cellRef: %s %i-%i", baseObject.refId.c_str(), baseObject.refNum, baseObject.mpNum);
|
LOG_APPEND(TimedLog::LOG_VERBOSE, "- cellRef: %s %i-%i", baseObject.refId.c_str(), baseObject.refNum, baseObject.mpNum);
|
||||||
|
MWWorld::Ptr ptrFound;
|
||||||
|
|
||||||
MWWorld::Ptr ptrFound = cellStore->searchExact(baseObject.refNum, baseObject.mpNum);
|
if (baseObject.refId.empty())
|
||||||
|
{
|
||||||
|
ptrFound = cellStore->searchExact(baseObject.refNum, baseObject.mpNum);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ptrFound = cellStore->searchExactPlus(baseObject.refId, baseObject.refNum, baseObject.mpNum);
|
||||||
|
}
|
||||||
|
|
||||||
if (ptrFound)
|
if (ptrFound)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user