Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
75bac4a5
Commit
75bac4a5
authored
Mar 31, 2012
by
Max-Wilhelm Bruker
Browse files
fixed gameStateKnown bug
parent
767d53b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/playerlistwidget.cpp
View file @
75bac4a5
...
...
@@ -101,7 +101,7 @@ void PlayerListWidget::updatePlayerProperties(const ServerInfo_PlayerProperties
player
->
setData
(
2
,
Qt
::
UserRole
,
prop
.
conceded
());
if
(
prop
.
has_ready_start
())
player
->
setData
(
2
,
Qt
::
UserRole
+
1
,
prop
.
ready_start
());
if
(
prop
.
has_conceded
()
&&
prop
.
has_ready_start
())
if
(
prop
.
has_conceded
()
||
prop
.
has_ready_start
())
player
->
setIcon
(
2
,
gameStarted
?
(
prop
.
conceded
()
?
concededIcon
:
QIcon
())
:
(
prop
.
ready_start
()
?
readyIcon
:
notReadyIcon
));
if
(
prop
.
has_user_info
())
{
player
->
setData
(
3
,
Qt
::
UserRole
,
prop
.
user_info
().
user_level
());
...
...
cockatrice/src/tab_game.cpp
View file @
75bac4a5
...
...
@@ -384,7 +384,7 @@ TabGame::TabGame(TabSupervisor *_tabSupervisor, QList<AbstractClient *> &_client
hostId
(
event
.
host_id
()),
localPlayerId
(
event
.
player_id
()),
spectator
(
event
.
spectator
()),
gameStateKnown
(
tru
e
),
gameStateKnown
(
fals
e
),
resuming
(
event
.
resuming
()),
currentPhase
(
-
1
),
activeCard
(
0
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment