mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-23 21:55:31 +02:00
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:
parent
dbc778b478
commit
d5a33f3ad2
@ -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);
|
||||
}
|
||||
|
||||
/* ************************************************************* */
|
||||
|
Loading…
x
Reference in New Issue
Block a user