diff --git a/apps/openmw/mwmp/WorldEvent.cpp b/apps/openmw/mwmp/WorldEvent.cpp index 762eca3f2..f272220c4 100644 --- a/apps/openmw/mwmp/WorldEvent.cpp +++ b/apps/openmw/mwmp/WorldEvent.cpp @@ -208,6 +208,33 @@ void WorldEvent::sendObjectScale(MWWorld::Ptr ptr, int scale) mwmp::Main::get().getNetworking()->getWorldPacket(ID_OBJECT_SCALE)->Send(); } +void WorldEvent::editActors(MWWorld::CellStore* cellStore) +{ + WorldObject worldObject; + + for (unsigned int i = 0; i < objectChanges.count; i++) + { + worldObject = objectChanges.objects.at(i); + + LOG_APPEND(Log::LOG_VERBOSE, "- cellRef: %s, %i, %i", worldObject.refId.c_str(), worldObject.refNumIndex, worldObject.mpNum); + + return; + + MWWorld::Ptr ptrFound = cellStore->searchExact(worldObject.refId, worldObject.refNumIndex, worldObject.mpNum); + + if (ptrFound) + { + LOG_APPEND(Log::LOG_VERBOSE, "-- Found %s, %i, %i", ptrFound.getCellRef().getRefId().c_str(), + ptrFound.getCellRef().getRefNum(), ptrFound.getCellRef().getMpNum()); + } + else + { + LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "-- Could not find %s, %i, %i", ptrFound.getCellRef().getRefId().c_str(), + ptrFound.getCellRef().getRefNum(), ptrFound.getCellRef().getMpNum()); + } + } +} + void WorldEvent::editContainers(MWWorld::CellStore* cellStore) { WorldObject worldObject; diff --git a/apps/openmw/mwmp/WorldEvent.hpp b/apps/openmw/mwmp/WorldEvent.hpp index 4ee53cc49..a6c2e81e9 100644 --- a/apps/openmw/mwmp/WorldEvent.hpp +++ b/apps/openmw/mwmp/WorldEvent.hpp @@ -25,6 +25,7 @@ namespace mwmp void sendObjectUnlock(MWWorld::Ptr ptr); void sendObjectScale(MWWorld::Ptr ptr, int scale); + void editActors(MWWorld::CellStore* cellStore); void editContainers(MWWorld::CellStore* cellStore); void placeObjects(MWWorld::CellStore* cellStore);