1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 12:33:17 +01:00

Add note about possible improvement of object sending

[ci skip]
This commit is contained in:
Michał Janiszewski
2016-11-11 18:38:23 +01:00
parent 0793b3bc11
commit b30454366f

View File

@@ -931,13 +931,17 @@ void Network::Server_Send_MAP(NetworkConnection* connection)
if (connection) {
objects = connection->RequestedObjects;
} else {
// This will send all custom objects to connected clients
// TODO: fix it so custom objects negotiation is performed even in this case.
objects = scenario_get_packable_objects();
}
header = save_for_network(rw, out_size, objects);
SDL_RWclose(rw);
if (header == nullptr) {
connection->SetLastDisconnectReason(STR_MULTIPLAYER_CONNECTION_CLOSED);
connection->Socket->Disconnect();
if (connection) {
connection->SetLastDisconnectReason(STR_MULTIPLAYER_CONNECTION_CLOSED);
connection->Socket->Disconnect();
}
return;
}
size_t chunksize = 65000;