t"Fatal warnings" replaced by CRITICAL messages - vaccinewars - be a doctor and… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 8f548a99c170fe2832460898159bf6bbcbd899f1 | |
parent 7b00a28d194bb2d2b70f0d395dd04e89639d34cb | |
Author: Ben Webb <[email protected]> | |
Date: Sat, 28 Apr 2001 17:41:00 +0000 | |
"Fatal warnings" replaced by CRITICAL messages | |
Diffstat: | |
M src/AIPlayer.c | 8 ++++++-- | |
M src/serverside.c | 8 ++++---- | |
2 files changed, 10 insertions(+), 6 deletions(-) | |
--- | |
diff --git a/src/AIPlayer.c b/src/AIPlayer.c | |
t@@ -61,8 +61,12 @@ void AIPlayerLoop() { | |
g_message(_("AI Player started; attempting to contact server at %s:%d..."), | |
ServerName,Port); | |
pt=SetupNetwork(FALSE); | |
- if (pt) g_error(_("Could not connect to dopewars server\n(%s)\n" | |
- "AI Player terminating abnormally."),_(pt)); | |
+ if (pt) { | |
+ g_log(NULL,G_LOG_LEVEL_CRITICAL, | |
+ _("Could not connect to dopewars server\n(%s)\n" | |
+ "AI Player terminating abnormally."),_(pt)); | |
+ return; | |
+ } | |
AIPlay->fd=ClientSock; | |
InitAbilities(AIPlay); | |
diff --git a/src/serverside.c b/src/serverside.c | |
t@@ -888,10 +888,10 @@ int InitHighScoreFile() { | |
#endif | |
if (!ScoreFP) { | |
- g_warning(_("Cannot open high score file %s.\n" | |
- "Either ensure you have permissions to access this file and " | |
- "directory, or\nspecify an alternate high score file with " | |
- "the -f command line option."),HiScoreFile); | |
+ g_log(NULL,G_LOG_LEVEL_CRITICAL,_("Cannot open high score file %s.\n" | |
+ "Either ensure you have permissions to access this file and " | |
+ "directory, or\nspecify an alternate high score file with " | |
+ "the -f command line option."),HiScoreFile); | |
return -1; | |
} | |
return 0; |