tLogging to a file should now work properly again. - vaccinewars - be a doctor and try to vaccinate the world (HTM) git clone git://src.adamsgaard.dk/vaccinewars (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 4b2ee96bbcd2229edce28a0a259d334b622e9822 (DIR) parent 72d6fe8767a92c35d956100700defeba2029127b (HTM) Author: Ben Webb <ben@salilab.org> Date: Mon, 23 Jun 2003 11:24:45 +0000 Logging to a file should now work properly again. Diffstat: M ChangeLog | 1 + M src/dopewars.c | 4 ++++ M src/winmain.c | 3 +++ 3 files changed, 8 insertions(+), 0 deletions(-) --- (DIR) diff --git a/ChangeLog b/ChangeLog t@@ -2,6 +2,7 @@ cvs - Fix for a curses client crash if the D key is pressed during attacks by the cops - Some problems with the curses client missing screen resize events fixed + - Logging to a file should now work properly again 1.5.9 07-06-2003 - The messages window in the curses client can now be scrolled with the (DIR) diff --git a/src/dopewars.c b/src/dopewars.c t@@ -2832,6 +2832,7 @@ void InitConfiguration(struct CMDLINE *cmdline) } if (cmdline->logfile) { AssignName(&Log.File, cmdline->logfile); + OpenLog(); } if (cmdline->setport) { Port = cmdline->port; t@@ -2956,6 +2957,9 @@ int main(int argc, char *argv[]) WantUTF8Errors(FALSE); g_log_set_handler(NULL, LogMask(), DefaultLogMessage, NULL); cmdline = GeneralStartup(argc, argv); + if (cmdline->logfile) { + AssignName(&Log.File, cmdline->logfile); + } OpenLog(); SoundInit(); if (cmdline->version || cmdline->help) { (DIR) diff --git a/src/winmain.c b/src/winmain.c t@@ -289,6 +289,9 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, get_cmdline(lpszCmdParam, &argc, &argv); cmdline = GeneralStartup(argc, argv); + if (cmdline->logfile) { + AssignName(&Log.File, cmdline->logfile); + } OpenLog(); SoundInit(); if (cmdline->version || cmdline->help) {