diff --git a/apps/openmw-mp/processors/player/ProcessorRecordDynamic.hpp b/apps/openmw-mp/processors/player/ProcessorRecordDynamic.hpp index b36270840..14838fe06 100644 --- a/apps/openmw-mp/processors/player/ProcessorRecordDynamic.hpp +++ b/apps/openmw-mp/processors/player/ProcessorRecordDynamic.hpp @@ -8,36 +8,17 @@ namespace mwmp class ProcessorRecordDynamic final : public PlayerProcessor { public: - using OldDState = ESM::StatState; ProcessorRecordDynamic() { BPP_INIT(ID_RECORD_DYNAMIC) - - Networking::get().getState().getState()->new_usertype("OldDState", - "base", &OldDState::mBase, - "current", &OldDState::mCurrent, - "mod", &OldDState::mMod, - "damage", &OldDState::mDamage, - "progress", &OldDState::mProgress); - } - - void PreReading(PlayerPacket &packet, const std::shared_ptr &player) override - { - std::copy(std::begin(player->creatureStats.mDynamic), - std::end(player->creatureStats.mDynamic), - oldValues.begin() - ); - } void Do(PlayerPacket &packet, const std::shared_ptr &player) override { DEBUG_PRINTF(strPacketID.c_str()); - Networking::get().getState().getEventCtrl().Call(&oldValues, player); + Networking::get().getState().getEventCtrl().Call(player); } - private: - std::array oldValues; }; }