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

Blocked most of incoming network packs during turns of other players

This commit is contained in:
Ivan Savenko
2024-04-27 12:36:24 +03:00
parent 3749439702
commit ac11a0e639
3 changed files with 48 additions and 1 deletions

View File

@@ -71,13 +71,13 @@ class TurnOrderProcessor : boost::noncopyable
void doEndPlayerTurn(PlayerColor which);
bool isPlayerAwaitsTurn(PlayerColor which) const;
bool isPlayerMakingTurn(PlayerColor which) const;
bool isPlayerAwaitsNewDay(PlayerColor which) const;
public:
TurnOrderProcessor(CGameHandler * owner);
bool isContactAllowed(PlayerColor left, PlayerColor right) const;
bool isPlayerMakingTurn(PlayerColor which) const;
/// Add new player to handle (e.g. on game start)
void addPlayer(PlayerColor which);