mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-17 20:36:47 +00:00
[Client] Update initialization of AiFollow packages in multiplayer code
This commit is contained in:
parent
a236ffc4be
commit
8a23a96da4
2 changed files with 2 additions and 2 deletions
|
@ -232,7 +232,7 @@ void DedicatedActor::setAI()
|
||||||
|
|
||||||
if (aiAction == mwmp::BaseActorList::FOLLOW)
|
if (aiAction == mwmp::BaseActorList::FOLLOW)
|
||||||
{
|
{
|
||||||
MWMechanics::AiFollow package(targetPtr.getCellRef().getRefId());
|
MWMechanics::AiFollow package(targetPtr);
|
||||||
ptr.getClass().getCreatureStats(ptr).getAiSequence().stack(package, ptr);
|
ptr.getClass().getCreatureStats(ptr).getAiSequence().stack(package, ptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -351,7 +351,7 @@ void ObjectList::spawnObjects(MWWorld::CellStore* cellStore)
|
||||||
{
|
{
|
||||||
LOG_APPEND(Log::LOG_VERBOSE, "-- Actor has master: %s", masterPtr.getCellRef().getRefId().c_str());
|
LOG_APPEND(Log::LOG_VERBOSE, "-- Actor has master: %s", masterPtr.getCellRef().getRefId().c_str());
|
||||||
|
|
||||||
MWMechanics::AiFollow package(masterPtr.getCellRef().getRefId());
|
MWMechanics::AiFollow package(masterPtr);
|
||||||
newPtr.getClass().getCreatureStats(newPtr).getAiSequence().stack(package, newPtr);
|
newPtr.getClass().getCreatureStats(newPtr).getAiSequence().stack(package, newPtr);
|
||||||
|
|
||||||
MWRender::Animation* anim = MWBase::Environment::get().getWorld()->getAnimation(newPtr);
|
MWRender::Animation* anim = MWBase::Environment::get().getWorld()->getAnimation(newPtr);
|
||||||
|
|
Loading…
Reference in a new issue