]> skyeroc.xyz Git - dgamelaunch/commitdiff
Replace last flood protection with retard protection, and make the protection reset...
authorPasi Kallinen <paxed@alt.org>
Sun, 23 Mar 2008 12:51:21 +0000 (12:51 +0000)
committerPasi Kallinen <paxed@alt.org>
Sun, 23 Mar 2008 12:51:21 +0000 (12:51 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@428 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

dgamelaunch.c

index f77385a0e24fe7fcf270bf8206e5e093b3eff47e..f79bb1022668b832562551b42a0ce76271ebeffc 100644 (file)
@@ -794,7 +794,6 @@ drawgamemenu(int game)
 void
 drawmenu ()
 {
-  static int flood = 0;
   int game = 0;
 
   clear ();
@@ -833,9 +832,7 @@ drawmenu ()
 
   refresh ();
 
-  /* for retarded clients */
-  flood++;
-  if (flood >= 20)
+  if (check_retard(0))
   {
     endwin();
     graceful_exit (119);
@@ -1460,6 +1457,7 @@ editoptions (int game)
     waitpid(editor, NULL, 0);
 
   refresh ();
+  check_retard(1);
 }
 
 /* ************************************************************* */