From e6041a45ffdea5528114df907db64b9d57d29d75 Mon Sep 17 00:00:00 2001 From: Leonid Pospelov Date: Mon, 2 Oct 2023 08:10:51 +0600 Subject: [PATCH] refact(skymp5-server): reformat code (#1714) --- skymp5-server/cpp/messages/ChangeValuesMessage.cpp | 2 +- skymp5-server/cpp/server_guest_lib/MpActor.cpp | 3 ++- skymp5-server/cpp/server_guest_lib/SpSnippet.cpp | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/skymp5-server/cpp/messages/ChangeValuesMessage.cpp b/skymp5-server/cpp/messages/ChangeValuesMessage.cpp index fac1a3753f..5b3e3248de 100644 --- a/skymp5-server/cpp/messages/ChangeValuesMessage.cpp +++ b/skymp5-server/cpp/messages/ChangeValuesMessage.cpp @@ -1,7 +1,7 @@ #include "ChangeValuesMessage.h" +#include "SerializationUtil/BitStreamUtil.h" #include #include -#include "SerializationUtil/BitStreamUtil.h" void ChangeValuesMessage::WriteBinary(SLNet::BitStream& stream) const { diff --git a/skymp5-server/cpp/server_guest_lib/MpActor.cpp b/skymp5-server/cpp/server_guest_lib/MpActor.cpp index f6ffc6aa2b..5ab9072c8e 100644 --- a/skymp5-server/cpp/server_guest_lib/MpActor.cpp +++ b/skymp5-server/cpp/server_guest_lib/MpActor.cpp @@ -181,7 +181,8 @@ void MpActor::SendToUserDeferred(const void* data, size_t size, bool reliable, { if (callbacks->sendToUserDeferred) { callbacks->sendToUserDeferred(this, data, size, reliable, - deferredChannelId, overwritePreviousChannelMessages); + deferredChannelId, + overwritePreviousChannelMessages); } else { throw std::runtime_error("sendToUserDeferred is nullptr"); } diff --git a/skymp5-server/cpp/server_guest_lib/SpSnippet.cpp b/skymp5-server/cpp/server_guest_lib/SpSnippet.cpp index 165c821713..26618b18c6 100644 --- a/skymp5-server/cpp/server_guest_lib/SpSnippet.cpp +++ b/skymp5-server/cpp/server_guest_lib/SpSnippet.cpp @@ -25,7 +25,8 @@ Viet::Promise SpSnippet::Execute(MpActor* actor) Networking::Format( [&](Networking::PacketData data, size_t len) { - // The only reason for deferred here is that it still supports raw binary data send + // The only reason for deferred here is that it still supports raw binary + // data send // TODO: change to SendToUser constexpr int kChannelSpSnippet = 1; actor->SendToUserDeferred(data, len, true, kChannelSpSnippet, false);