diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-01-06 18:34:29 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-01-06 18:34:29 +0000 |
commit | 79d1509407240c0d549843009dba4b37b64c2a9b (patch) | |
tree | 1b36d35d3add67a082262f7355778dacc371a171 /source/sys_unix.c | |
parent | 0746f5d59cbf076310feca52581833a7b45f9663 (diff) |
Fixed invalid client ID being displayed by `status' command on GTV servers.
Fixed stupid Sys_Sleep bug on Unix systems.
Draw `Loading anticheat...' string in connection screen.
Added Sys_GetAntiCheatAPI stub into sys_unix.c for testing purposes.
Diffstat (limited to 'source/sys_unix.c')
-rw-r--r-- | source/sys_unix.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/sys_unix.c b/source/sys_unix.c index 19ee92c..7836c7e 100644 --- a/source/sys_unix.c +++ b/source/sys_unix.c @@ -674,7 +674,10 @@ void Sys_AddDefaultConfig( void ) { } void Sys_Sleep( int msec ) { - struct timespec req = { 0, msec * 1000000 }; + struct timespec req; + + req.tv_sec = msec / 1000; msec %= 1000; + req.tv_nsec = msec * 1000000; nanosleep( &req, NULL ); } @@ -682,6 +685,13 @@ void Sys_Setenv( const char *name, const char *value ) { setenv( name, value, 1 ); } +#if USE_ANTICHEAT & 1 +qboolean Sys_GetAntiCheatAPI( void ) { + Sys_Sleep( 1500 ); + return qfalse; +} +#endif + /* ================ Sys_FillAPI |