Skip to content

Commit

Permalink
refact(skymp5-server): reformat code (skyrim-multiplayer#1714)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pospelove authored Oct 2, 2023
1 parent f8d6560 commit e6041a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion skymp5-server/cpp/messages/ChangeValuesMessage.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "ChangeValuesMessage.h"
#include "SerializationUtil/BitStreamUtil.h"
#include <nlohmann/json.hpp>
#include <slikenet/BitStream.h>
#include "SerializationUtil/BitStreamUtil.h"

void ChangeValuesMessage::WriteBinary(SLNet::BitStream& stream) const
{
Expand Down
3 changes: 2 additions & 1 deletion skymp5-server/cpp/server_guest_lib/MpActor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
3 changes: 2 additions & 1 deletion skymp5-server/cpp/server_guest_lib/SpSnippet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ Viet::Promise<VarValue> 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);
Expand Down

0 comments on commit e6041a4

Please sign in to comment.