1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Initial version of antilag support

This commit is contained in:
Ivan Savenko
2025-06-28 21:42:54 +03:00
parent 58de180083
commit 3576efc3f3
24 changed files with 490 additions and 23 deletions

View File

@@ -1158,7 +1158,7 @@ bool CVCMIServer::hasBothPlayersAtSameConnection(PlayerColor left, PlayerColor r
return false;
}
void CVCMIServer::broadcastPack(const CPackForClient & pack)
void CVCMIServer::broadcastPack(CPackForClient & pack)
{
for (const auto & c : activeConnections)
c->sendPack(pack);