mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 05:41:52 +00:00
trying to fix some bugs.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@998 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
90ffea325d
commit
76f5eb5769
1 changed files with 12 additions and 3 deletions
|
@ -201,8 +201,11 @@ void VARGS Sys_DebugLog(char *file, char *fmt, ...)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
fd = fopen(file, "ab");
|
fd = fopen(file, "ab");
|
||||||
fprintf(fd, "%s", data);
|
if (fd)
|
||||||
fclose(fd);
|
{
|
||||||
|
fprintf(fd, "%s", data);
|
||||||
|
fclose(fd);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
int *debug;
|
int *debug;
|
||||||
|
@ -751,6 +754,9 @@ char *Sys_ConsoleInput (void)
|
||||||
HANDLE th;
|
HANDLE th;
|
||||||
char *clipText, *textCopied;
|
char *clipText, *textCopied;
|
||||||
|
|
||||||
|
if (!hinput)
|
||||||
|
return;
|
||||||
|
|
||||||
for ( ;; )
|
for ( ;; )
|
||||||
{
|
{
|
||||||
if (!GetNumberOfConsoleInputEvents (hinput, &numevents))
|
if (!GetNumberOfConsoleInputEvents (hinput, &numevents))
|
||||||
|
@ -868,6 +874,9 @@ qboolean Sys_InitTerminal (void)
|
||||||
void Sys_CloseTerminal (void)
|
void Sys_CloseTerminal (void)
|
||||||
{
|
{
|
||||||
FreeConsole();
|
FreeConsole();
|
||||||
|
|
||||||
|
hinput = NULL;
|
||||||
|
houtput = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -883,7 +892,7 @@ void Sys_SendKeyEvents (void)
|
||||||
{
|
{
|
||||||
MSG msg;
|
MSG msg;
|
||||||
|
|
||||||
if (!qrenderer)
|
if (isDedicated)
|
||||||
{
|
{
|
||||||
#ifndef CLIENTONLY
|
#ifndef CLIENTONLY
|
||||||
SV_GetConsoleCommands ();
|
SV_GetConsoleCommands ();
|
||||||
|
|
Loading…
Reference in a new issue