1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 22:34:33 +01:00

Show units used when streaming the map over network. Fix #3328 (#3331)

This commit is contained in:
janisozaur
2016-04-17 22:27:23 +02:00
committed by Ted John
parent c3ba519a6e
commit 24eaa0a56d
2 changed files with 3 additions and 3 deletions

View File

@@ -1355,7 +1355,7 @@ void Network::Server_Send_MAP(NetworkConnection* connection)
SDL_RWclose(rw);
return;
}
size_t chunksize = 1000;
size_t chunksize = 1024;
size_t out_size = size;
unsigned char *compressed = util_zlib_deflate(&buffer[0], size, &out_size);
unsigned char *header;
@@ -1765,7 +1765,7 @@ void Network::Client_Handle_MAP(NetworkConnection& connection, NetworkPacket& pa
chunk_buffer.resize(offset + chunksize);
}
char str_downloading_map[256];
unsigned int downloading_map_args[2] = {(offset + chunksize) / 1000, size / 1000};
unsigned int downloading_map_args[2] = {(offset + chunksize) / 1024, size / 1024};
format_string(str_downloading_map, STR_MULTIPLAYER_DOWNLOADING_MAP, downloading_map_args);
window_network_status_open(str_downloading_map, []() -> void {
gNetwork.Close();