1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

Added explicit "PlayerEndsTurn" netpack

- PlayerEndsTurn pack is now sent when player ends turn
- YourTurn pack has been renamed to PlayerStartsTurn for consistency
- PlayerStartsTurn will no longer replace list of acting players
- PlayerEndsGame and PlayerEndsTurn will remove player from acting list
This commit is contained in:
Ivan Savenko
2023-09-17 01:13:58 +03:00
parent 54ff039c51
commit 219f81d28b
12 changed files with 66 additions and 16 deletions

View File

@ -470,7 +470,7 @@ void ClientCommandManager::printCommandMessage(const std::string &commandMessage
void ClientCommandManager::giveTurn(const PlayerColor &colorIdentifier)
{
YourTurn yt;
PlayerStartsTurn yt;
yt.player = colorIdentifier;
yt.queryID = -1;