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
2c6d112b
Commit
2c6d112b
authored
Apr 18, 2011
by
Max-Wilhelm Bruker
Browse files
Merge branch 'experimental' of
git://cockatrice.git.sourceforge.net/gitroot/cockatrice/cockatrice
parents
69fce1fb
6f3a20f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
common/server_room.cpp
View file @
2c6d112b
...
...
@@ -84,7 +84,6 @@ Server_Game *Server_Room::createGame(const QString &description, const QString &
Server_Game
*
newGame
=
new
Server_Game
(
creator
,
static_cast
<
Server
*>
(
parent
())
->
getNextGameId
(),
description
,
password
,
maxPlayers
,
gameTypes
,
onlyBuddies
,
onlyRegistered
,
spectatorsAllowed
,
spectatorsNeedPassword
,
spectatorsCanTalk
,
spectatorsSeeEverything
,
this
);
newGame
->
moveToThread
(
thread
());
newGame
->
setParent
(
this
);
// This mutex needs to be unlocked by the caller.
newGame
->
gameMutex
.
lock
();
games
.
insert
(
newGame
->
getGameId
(),
newGame
);
...
...
servatrice/src/main.cpp
View file @
2c6d112b
...
...
@@ -75,7 +75,10 @@ void myMessageOutput(QtMsgType /*type*/, const char *msg)
void
sigSegvHandler
(
int
sig
)
{
logger
->
logMessage
(
"SIGSEGV"
);
if
(
sig
==
SIGSEGV
)
logger
->
logMessage
(
"CRASH: SIGSEGV"
);
else
if
(
sig
==
SIGABRT
)
logger
->
logMessage
(
"CRASH: SIGABRT"
);
delete
loggerThread
;
raise
(
sig
);
}
...
...
@@ -114,6 +117,7 @@ int main(int argc, char *argv[])
segv
.
sa_flags
=
SA_RESETHAND
;
sigemptyset
(
&
segv
.
sa_mask
);
sigaction
(
SIGSEGV
,
&
segv
,
0
);
sigaction
(
SIGABRT
,
&
segv
,
0
);
#endif
rng
=
new
RNG_SFMT
;
...
...
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