mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-08 15:22:07 +00:00
sys_sleep is 8 by default now;
CVAR_FIXME cleanup
This commit is contained in:
parent
9ffa5f9e1d
commit
f8604f0735
1 changed files with 3 additions and 13 deletions
|
@ -27,7 +27,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include <config.h>
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -44,11 +44,7 @@
|
||||||
qboolean is_server = true;
|
qboolean is_server = true;
|
||||||
qboolean WinNT;
|
qboolean WinNT;
|
||||||
|
|
||||||
/* cvar_t sys_nostdout = {"sys_nostdout","0"};
|
|
||||||
CVAR_FIXME */
|
|
||||||
cvar_t *sys_nostdout;
|
cvar_t *sys_nostdout;
|
||||||
/* cvar_t sys_sleep = {"sys_sleep","1"};
|
|
||||||
CVAR_FIXME */
|
|
||||||
cvar_t *sys_sleep;
|
cvar_t *sys_sleep;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -104,7 +100,7 @@ char *Sys_ConsoleInput (void)
|
||||||
int c;
|
int c;
|
||||||
|
|
||||||
// read a line out
|
// read a line out
|
||||||
while (kbhit())
|
while (kbhit())
|
||||||
{
|
{
|
||||||
c = _getch();
|
c = _getch();
|
||||||
putch (c);
|
putch (c);
|
||||||
|
@ -146,8 +142,6 @@ void Sys_Printf (char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list argptr;
|
va_list argptr;
|
||||||
|
|
||||||
/* if (sys_nostdout.value)
|
|
||||||
CVAR_FIXME */
|
|
||||||
if (sys_nostdout->value)
|
if (sys_nostdout->value)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -179,12 +173,8 @@ void Sys_Init (void)
|
||||||
{
|
{
|
||||||
OSVERSIONINFO vinfo;
|
OSVERSIONINFO vinfo;
|
||||||
|
|
||||||
/* Cvar_RegisterVariable (&sys_nostdout);
|
|
||||||
CVAR_FIXME */
|
|
||||||
sys_nostdout = Cvar_Get("sys_nostdout", "0", CVAR_NONE, "None");
|
sys_nostdout = Cvar_Get("sys_nostdout", "0", CVAR_NONE, "None");
|
||||||
/* Cvar_RegisterVariable (&sys_sleep);
|
sys_sleep = Cvar_Get("sys_sleep", "8", CVAR_NONE, "None");
|
||||||
CVAR_FIXME */
|
|
||||||
sys_sleep = Cvar_Get("sys_sleep", "1", CVAR_NONE, "None");
|
|
||||||
|
|
||||||
// make sure the timer is high precision, otherwise
|
// make sure the timer is high precision, otherwise
|
||||||
// NT gets 18ms resolution
|
// NT gets 18ms resolution
|
||||||
|
|
Loading…
Reference in a new issue