mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-26 02:40:57 +00:00
Ignore errors of AllocConsole()
This errors are harmless and thrown when the process is already attached to a console. Since the dedicated server is a console application the console is created by Windows at startup...
This commit is contained in:
parent
fb528550e2
commit
7bd814e31e
1 changed files with 1 additions and 4 deletions
|
@ -214,10 +214,7 @@ Sys_Init(void)
|
|||
|
||||
if (dedicated->value)
|
||||
{
|
||||
if (!AllocConsole())
|
||||
{
|
||||
Sys_Error("Couldn't create dedicated server console");
|
||||
}
|
||||
AllocConsole();
|
||||
|
||||
hinput = GetStdHandle(STD_INPUT_HANDLE);
|
||||
houtput = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||
|
|
Loading…
Reference in a new issue