]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
in anticheat compiles, reject input from stdin
authorRudolf Polzer <divverent@alientrap.org>
Mon, 4 Jun 2012 09:00:23 +0000 (11:00 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 4 Jun 2012 09:00:23 +0000 (11:00 +0200)
sys_linux.c
sys_sdl.c

index 6e6afded36e35028c3a933119d0552226e1ae2f3..70fe819d19d957f7bfce18234a1b316a07e0906e 100644 (file)
@@ -76,7 +76,9 @@ void Sys_PrintToTerminal(const char *text)
 
 char *Sys_ConsoleInput(void)
 {
-       //if (cls.state == ca_dedicated)
+#ifdef ANTICHEAT
+       if (cls.state == ca_dedicated)
+#endif
        {
                static char text[MAX_INPUTLINE];
                static unsigned int len = 0;
index 13be11eae2f7a1d25f9afea2059d44d2a9d88f3c..c00cf4082140fffef21efe76d33ec9ca5f5c62f9 100644 (file)
--- a/sys_sdl.c
+++ b/sys_sdl.c
@@ -83,7 +83,9 @@ void Sys_PrintToTerminal(const char *text)
 
 char *Sys_ConsoleInput(void)
 {
-//     if (cls.state == ca_dedicated)
+#ifdef ANTICHEAT
+       if (cls.state == ca_dedicated)
+#endif
        {
                static char text[MAX_INPUTLINE];
                int len = 0;