summaryrefslogtreecommitdiff
path: root/video/dedicated_v.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-12-26 17:36:18 +0000
committerDarkvater <Darkvater@openttd.org>2006-12-26 17:36:18 +0000
commit04628a1979f0ab8df4e78c0a57ca0d73381846be (patch)
tree8dae47833ded5c522ac7a89f69f10fc0c2530e90 /video/dedicated_v.c
parent08d0319f7c50fba3ea11071d7a781478438cbbab (diff)
downloadopenttd-04628a1979f0ab8df4e78c0a57ca0d73381846be.tar.xz
(svn r7565) -Codechange: Rework DEBUG functionality. Look for appropiate debugging levels to
use in debug.h. grfmsg() is now used as a specific debug-function for grf.
Diffstat (limited to 'video/dedicated_v.c')
-rw-r--r--video/dedicated_v.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/video/dedicated_v.c b/video/dedicated_v.c
index e0124e02c..c4a74e902 100644
--- a/video/dedicated_v.c
+++ b/video/dedicated_v.c
@@ -92,7 +92,7 @@ static void CreateWindowsConsoleThread(void)
_hThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)CheckForConsoleInput, NULL, 0, &dwThreadId);
if (_hThread == NULL) error("Cannot create console thread!");
- DEBUG(driver, 1) ("Windows console thread started...");
+ DEBUG(driver, 2, "Windows console thread started");
}
static void CloseWindowsConsoleThread(void)
@@ -100,7 +100,7 @@ static void CloseWindowsConsoleThread(void)
CloseHandle(_hThread);
CloseHandle(_hInputReady);
CloseHandle(_hWaitForInputHandling);
- DEBUG(driver, 1) ("Windows console thread shut down...");
+ DEBUG(driver, 2, "Windows console thread shut down");
}
#endif
@@ -133,7 +133,7 @@ static const char *DedicatedVideoStart(const char * const *parm)
OS2_SwitchToConsoleMode();
#endif
- DEBUG(driver, 1)("Loading dedicated server...");
+ DEBUG(driver, 1, "Loading dedicated server");
return NULL;
}
@@ -253,7 +253,7 @@ static void DedicatedVideoMainLoop(void)
* intro game... */
if (!SafeSaveOrLoad(_file_to_saveload.name, _file_to_saveload.mode, GM_NORMAL)) {
/* Loading failed, pop out.. */
- DEBUG(net, 0)("Loading requested map failed. Aborting.");
+ DEBUG(net, 0, "Loading requested map failed, aborting");
_networking = false;
} else {
/* We can load this game, so go ahead */
@@ -264,7 +264,7 @@ static void DedicatedVideoMainLoop(void)
// Done loading, start game!
if (!_networking) {
- DEBUG(net, 1)("Dedicated server could not be launched. Aborting.");
+ DEBUG(net, 0, "Dedicated server could not be started, aborting");
return;
}