mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 01:23:57 -07:00
Removed unused fields in GameMetaInfo and GameState (#6142)
* Removed unused fields in GameMetaInfo and GameState * revert parent to AbstractGame * init activePlayer to -1
This commit is contained in:
parent
9b3756e591
commit
94ba1c83c6
4 changed files with 7 additions and 26 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "abstract_game.h"
|
||||
|
||||
GameState::GameState(AbstractGame *_game,
|
||||
GameState::GameState(AbstractGame *parent,
|
||||
int _secondsElapsed,
|
||||
int _hostId,
|
||||
bool _isLocalGame,
|
||||
|
|
@ -11,9 +11,9 @@ GameState::GameState(AbstractGame *_game,
|
|||
bool _resuming,
|
||||
int _currentPhase,
|
||||
bool _gameClosed)
|
||||
: QObject(_game), game(_game), secondsElapsed(_secondsElapsed), hostId(_hostId), isLocalGame(_isLocalGame),
|
||||
: QObject(parent), gameTimer(nullptr), secondsElapsed(_secondsElapsed), hostId(_hostId), isLocalGame(_isLocalGame),
|
||||
clients(_clients), gameStateKnown(_gameStateKnown), resuming(_resuming), currentPhase(_currentPhase),
|
||||
gameClosed(_gameClosed)
|
||||
activePlayer(-1), gameClosed(_gameClosed)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue