summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-04-04 19:17:38 -0600
committerJared Adams <jaxad0127@gmail.com>2010-04-04 19:17:38 -0600
commitd79ca5c109ab12b4c1292fe16d17dab6919722a5 (patch)
tree43f3f67b07d037b50a47156097195aac0fc4b751 /src/map/pc.c
parent1e87b3a15f2098fa5b7ad0a895c51f0bfe872267 (diff)
parentb683a1ba9ba9e46bab0d8f94e38ef56669f8530a (diff)
downloadtmwa-d79ca5c109ab12b4c1292fe16d17dab6919722a5.tar.gz
tmwa-d79ca5c109ab12b4c1292fe16d17dab6919722a5.tar.bz2
tmwa-d79ca5c109ab12b4c1292fe16d17dab6919722a5.tar.xz
tmwa-d79ca5c109ab12b4c1292fe16d17dab6919722a5.zip
Merge commit 'refs/merge-requests/2' of git://gitorious.org/tmw-eathena/mainline
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 8d1066d..748abf9 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -958,8 +958,9 @@ int pc_authok (int id, int login_id2, time_t connect_until_time,
sd->chat_reset_due = sd->chat_lines_in = sd->chat_total_repeats =
sd->chat_repeat_reset_due = 0;
sd->chat_lastmsg[0] = '\0';
- sd->trade_reset_due = sd->trades_in = 0;
- sd->sit_reset_due = sd->sits_in = 0;
+
+ memset(sd->flood_rates, 0, sizeof(sd->flood_rates));
+ sd->packet_flood_reset_due = sd->packet_flood_in = 0;
// message of the limited time of the account
if (connect_until_time != 0)