From: havoc Date: Tue, 1 Apr 2008 09:06:47 +0000 (+0000) Subject: comment out a line to make the darkplaces.exe -dedicated console show X-Git-Tag: xonotic-v0.1.0preview~2290 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=25d34896c3a527a35d112fa7969081c554473b21;p=xonotic%2Fdarkplaces.git comment out a line to make the darkplaces.exe -dedicated console show up, apparently the initial houtput is never 0 or invalid on Windows XP, which causes it to never open a console - but then error out because the hinput is invalid git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8238 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sys_win.c b/sys_win.c index a4c740c9..be6fac21 100644 --- a/sys_win.c +++ b/sys_win.c @@ -315,7 +315,7 @@ void Sys_InitConsole (void) // if (cls.state == ca_dedicated) if (COM_CheckParm("-dedicated")) { - if ((houtput == 0) || (houtput == INVALID_HANDLE_VALUE)) + //if ((houtput == 0) || (houtput == INVALID_HANDLE_VALUE)) // LordHavoc: on Windows XP this is never 0 or invalid, but hinput is invalid { AllocConsole (); houtput = GetStdHandle (STD_OUTPUT_HANDLE);