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
657f9768
Commit
657f9768
authored
Mar 03, 2011
by
Max-Wilhelm Bruker
Browse files
drop disconnected spectators from games instead of keeping them alive
parent
57f9e2c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/server_protocolhandler.cpp
View file @
657f9768
...
...
@@ -35,7 +35,7 @@ Server_ProtocolHandler::~Server_ProtocolHandler()
Server_Game
*
g
=
gameIterator
.
value
().
first
;
Server_Player
*
p
=
gameIterator
.
value
().
second
;
if
(
authState
==
UnknownUser
)
if
(
(
authState
==
UnknownUser
)
||
p
->
getSpectator
())
g
->
removePlayer
(
p
);
else
p
->
setProtocolHandler
(
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