Replace last flood protection with retard protection, and make the protection reset when editing options file.

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@428 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Pasi Kallinen 2008-03-23 12:51:21 +00:00
parent dbc778b478
commit d5a33f3ad2

View File

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