mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 00:28:08 -04:00
[Client] Initialize Cell before moving DedicatedActor to it
This commit is contained in:
parent
a7b06b342f
commit
bcdbecf608
@ -257,6 +257,7 @@ void Cell::readCellChange(ActorList& actorList)
|
||||
if (cellController->isActiveWorldCell(dedicatedActor->cell) && !cellController->hasLocalAuthority(dedicatedActor->cell))
|
||||
{
|
||||
LOG_APPEND(Log::LOG_INFO, "- Moving DedicatedActor %s to our active cell %s", mapIndex.c_str(), dedicatedActor->cell.getDescription().c_str());
|
||||
cellController->initializeCell(dedicatedActor->cell);
|
||||
Cell *newCell = cellController->getCell(dedicatedActor->cell);
|
||||
newCell->dedicatedActors[mapIndex] = dedicatedActor;
|
||||
cellController->setDedicatedActorRecord(mapIndex, newCell->getDescription());
|
||||
|
@ -80,7 +80,6 @@ void DedicatedActor::move(float dt)
|
||||
else
|
||||
{
|
||||
setPosition();
|
||||
setMovementSettings();
|
||||
hasChangedCell = false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user