diff --git a/apps/openmw-mp/Cell.cpp b/apps/openmw-mp/Cell.cpp index 6b37b5888..c46130b8e 100644 --- a/apps/openmw-mp/Cell.cpp +++ b/apps/openmw-mp/Cell.cpp @@ -81,8 +81,15 @@ void Cell::readActorList(unsigned char packetID, const mwmp::BaseActorList *newA switch (packetID) { + case ID_ACTOR_POSITION: + + cellActor->hasPositionData = true; + cellActor->position = newActor.position; + break; + case ID_ACTOR_STATS_DYNAMIC: + cellActor->hasStatsDynamicData = true; cellActor->creatureStats.mDynamic[0] = newActor.creatureStats.mDynamic[0]; cellActor->creatureStats.mDynamic[1] = newActor.creatureStats.mDynamic[1]; cellActor->creatureStats.mDynamic[2] = newActor.creatureStats.mDynamic[2]; diff --git a/apps/openmw-mp/processors/actor/ProcessorActorPosition.hpp b/apps/openmw-mp/processors/actor/ProcessorActorPosition.hpp index 9e3c8732b..f5600dcd9 100644 --- a/apps/openmw-mp/processors/actor/ProcessorActorPosition.hpp +++ b/apps/openmw-mp/processors/actor/ProcessorActorPosition.hpp @@ -19,9 +19,10 @@ namespace mwmp Cell *serverCell = CellController::get()->getCell(&actorList.cell); if (serverCell != nullptr) + { + serverCell->readActorList(packetID, &actorList); serverCell->sendToLoaded(&packet, &actorList); - - //Script::Call(player.getId(), actorList.cell.getDescription().c_str()); + } } }; }