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
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);
}
/* ************************************************************* */