From: Pasi Kallinen Date: Sun, 23 Mar 2008 12:51:21 +0000 (+0000) Subject: Replace last flood protection with retard protection, and make the protection reset... X-Git-Tag: v1.6.1-roc-dev~280 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=d5a33f3ad2f77a2652f72a9f0c1b5f33bca5ea2e;p=dgamelaunch 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 --- diff --git a/dgamelaunch.c b/dgamelaunch.c index f77385a..f79bb10 100644 --- a/dgamelaunch.c +++ b/dgamelaunch.c @@ -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); } /* ************************************************************* */