From 718a8394e48ab4e0a29d4d58e3a7f2ad1359de39 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Tue, 18 Feb 2003 00:05:26 +0000 Subject: [PATCH] No key config debug message unless DEBUG is defined. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@766 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/setup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sc2/src/sc2code/setup.c b/sc2/src/sc2code/setup.c index cce72c5d9..a423b9327 100644 --- a/sc2/src/sc2code/setup.c +++ b/sc2/src/sc2code/setup.c @@ -162,7 +162,9 @@ LoadKeyConfig (FILE *fp, DWORD length) if (line[0] == '"') { specialKeys[i] = (UNICODE)(ParseKeyString(line) & 0xFF); +#ifdef DEBUG fprintf(stderr, "Special %i = %i\n", i, specialKeys[i]); +#endif } } @@ -212,7 +214,9 @@ LoadKeyConfig (FILE *fp, DWORD length) joy[0] = 0; } buf[i] = ParseKeyString (line); +#ifdef DEBUG fprintf(stderr, "Player %i, key %i = %i\n", p, i, buf[i]); +#endif if (joy[0] != 0) { char type;