mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
phases toolbar improvement
This commit is contained in:
parent
a5280946c2
commit
0dbc580b8a
6 changed files with 33 additions and 18 deletions
|
|
@ -294,8 +294,10 @@ void Game::gameEvent(const ServerEventData &msg)
|
|||
case eventSetActivePhase: {
|
||||
QStringList data = msg.getEventData();
|
||||
int phase = data[0].toInt();
|
||||
currentPhase = phase;
|
||||
emit setActivePhase(phase);
|
||||
if (currentPhase != phase) {
|
||||
currentPhase = phase;
|
||||
emit setActivePhase(phase);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue