Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Oct 13, 2024
1 parent 6983b87 commit 7cd4893
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/fm_clientiface.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <cstdint>
#include <ranges>
#include "clientiface.h"
#include "constants.h"
#include "irr_v3d.h"
Expand Down Expand Up @@ -607,9 +606,10 @@ uint32_t RemoteClient::SendFarBlocks()

// First with larger iteration and smaller step

for (const auto &[key, block] : std::views::reverse(ordered)) {
for (auto it = ordered.rbegin(); it != ordered.rend(); ++it) {
// for (const auto &[key, block] : std::views::reverse(ordered)) {
m_env->m_server->SendBlockFm(
peer_id, block, serialization_version, net_proto_version);
peer_id, it->second, serialization_version, net_proto_version);
}
}
return sent_cnt;
Expand Down
2 changes: 1 addition & 1 deletion src/fm_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ void Server::SendBlockFm(session_t peer_id, MapBlockP block, u8 ver,

uint32_t Server::SendFarBlocks(float dtime)
{
ScopeProfiler sp(g_profiler, "Server send far blocks");
ScopeProfiler sp(g_profiler, "Server: Far blocks send");
uint32_t sent{};
for (const auto &client : m_clients.getClientList()) {
if (!client)
Expand Down

0 comments on commit 7cd4893

Please sign in to comment.