Skip to content

Commit

Permalink
ping problem possible solution
Browse files Browse the repository at this point in the history
  • Loading branch information
ISPlatonov committed Jan 11, 2024
1 parent 28007c6 commit eb8053e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common/Multiplayer/Operators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ sf::Packet& operator >>(sf::Packet& packet, Multiplayer::PlayerData& player_data
unsigned int msg_port;
PlayerId player_id;
packet >> position.x >> position.y >> player_id >> sent_time;
sent_time = static_cast<sf::Uint32>(std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::high_resolution_clock::now().time_since_epoch()).count());
sf::Uint32 inventory_size_uint32;
packet >> inventory_size_uint32;
size_t inventory_size = static_cast<size_t>(inventory_size_uint32);
Expand Down

0 comments on commit eb8053e

Please sign in to comment.