mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-09-24 10:18:51 +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
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************* */
|
/* ************************************************************* */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user