mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Implement player start turn query
This commit is contained in:
@@ -398,7 +398,7 @@ void ApplyClientNetPackVisitor::visitPlayerReinitInterface(PlayerReinitInterface
|
||||
if (cl.gameState()->isPlayerMakingTurn(player))
|
||||
{
|
||||
callAllInterfaces(cl, &IGameEventsReceiver::playerStartsTurn, player);
|
||||
callOnlyThatInterface(cl, player, &CGameInterface::yourTurn);
|
||||
callOnlyThatInterface(cl, player, &CGameInterface::yourTurn, -1);
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -873,7 +873,7 @@ void ApplyClientNetPackVisitor::visitYourTurn(YourTurn & pack)
|
||||
logNetwork->debug("Server gives turn to %s", pack.player.getStr());
|
||||
|
||||
callAllInterfaces(cl, &IGameEventsReceiver::playerStartsTurn, pack.player);
|
||||
callOnlyThatInterface(cl, pack.player, &CGameInterface::yourTurn);
|
||||
callOnlyThatInterface(cl, pack.player, &CGameInterface::yourTurn, pack.queryID);
|
||||
}
|
||||
|
||||
void ApplyClientNetPackVisitor::visitTurnTimeUpdate(TurnTimeUpdate & pack)
|
||||
|
||||
Reference in New Issue
Block a user