Skip to content

Commit

Permalink
Fix steam packet peer format
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptsengineer committed Dec 8, 2024
1 parent 7a00ad0 commit fc56785
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions steam-multiplayer-peer/steam_packet_peer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
void SteamPacketPeer::_bind_methods() {
}

SteamPacketPeer::SteamPacketPeer() {
}

SteamPacketPeer::SteamPacketPeer(const void *p_buffer, uint32_t p_buffer_size, int transferMode) {
ERR_FAIL_COND_MSG(p_buffer_size > MAX_STEAM_PACKET_SIZE, vformat("Error: Tried to send a packet larger than MAX_STEAM_PACKET_SIZE: %d", p_buffer_size));
Expand Down
2 changes: 1 addition & 1 deletion steam-multiplayer-peer/steam_packet_peer.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class SteamPacketPeer : public RefCounted {
uint32_t size = 0;
uint64_t sender;
int transfer_mode = SEND_RELIABLE;
SteamPacketPeer() {}
SteamPacketPeer();
SteamPacketPeer(const void *p_buffer, uint32_t p_buffer_size, int transferMode);


Expand Down

0 comments on commit fc56785

Please sign in to comment.