summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-09-21 05:22:13 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-09-21 05:22:13 +0000
commit8e2d7056fb461b04d20c868ffeed73468c6e1f3e (patch)
treef58c7d8b32d4ba5fcaa38f08fd5e7b03e88f499b /src/map
parent1285deb746735dd189c859b2090b580fddc2672e (diff)
downloadhercules-8e2d7056fb461b04d20c868ffeed73468c6e1f3e.tar.gz
hercules-8e2d7056fb461b04d20c868ffeed73468c6e1f3e.tar.bz2
hercules-8e2d7056fb461b04d20c868ffeed73468c6e1f3e.tar.xz
hercules-8e2d7056fb461b04d20c868ffeed73468c6e1f3e.zip
* Makefile deleting .svn in save folder.
* Limited the number of packets parsed per cycle to 3. (packet spammers create less lag) * Fixed sql login throwing an out-of-place debug message and escaping too much of the name string when creating a new login with _M/F. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11253 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index ff6ccb9cf..fab1e00ad 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -11521,8 +11521,12 @@ int clif_parse(int fd)
{
int cmd, packet_ver, packet_len, err;
TBL_PC* sd;
+ int pnum;
- while(1)
+ //TODO apply deplays or disconnect based on packet throughput [FlavioJS]
+ // Note: "click masters" can do 80+ clicks in 10 seconds
+
+ for( pnum = 0; pnum < 3; ++pnum )// Limit max packets per cycle to 3 (delay packet spammers) [FlavioJS]
{ // begin main client packet processing loop
sd = (TBL_PC *)session[fd]->session_data;