mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-03-23 11:22:05 +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
4e37958b63
commit
7d3b9a5c00
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