vaccinewars

be a doctor and try to vaccinate the world
git clone git://src.adamsgaard.dk/vaccinewars # fast
git clone https://src.adamsgaard.dk/vaccinewars.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit 8f548a99c170fe2832460898159bf6bbcbd899f1
parent 7b00a28d194bb2d2b70f0d395dd04e89639d34cb
Author: Ben Webb <ben@salilab.org>
Date:   Sat, 28 Apr 2001 17:41:00 +0000

"Fatal warnings" replaced by CRITICAL messages


Diffstat:
Msrc/AIPlayer.c | 8++++++--
Msrc/serverside.c | 8++++----
2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/src/AIPlayer.c b/src/AIPlayer.c @@ -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 @@ -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;