diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-04-09 17:59:01 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-04-11 14:21:42 -0700 |
commit | 8ce76f29ab6bc6ea0809c085b4f395373b3cb8d7 (patch) | |
tree | 407e8fb0258440c6dd60cca98b6304fb946eba70 /src/map/tmw.cpp | |
parent | 756085f91d0f01c69550735cf2e60cae54d9c72a (diff) | |
download | tmwa-8ce76f29ab6bc6ea0809c085b4f395373b3cb8d7.tar.gz tmwa-8ce76f29ab6bc6ea0809c085b4f395373b3cb8d7.tar.bz2 tmwa-8ce76f29ab6bc6ea0809c085b4f395373b3cb8d7.tar.xz tmwa-8ce76f29ab6bc6ea0809c085b4f395373b3cb8d7.zip |
Also implement x32 support
Diffstat (limited to 'src/map/tmw.cpp')
-rw-r--r-- | src/map/tmw.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/tmw.cpp b/src/map/tmw.cpp index 0229f17..66b8bb9 100644 --- a/src/map/tmw.cpp +++ b/src/map/tmw.cpp @@ -27,21 +27,21 @@ int tmw_ShorterStrlen(const char *s1, const char *s2); int tmw_CheckChatSpam(struct map_session_data *sd, const char *message) { nullpo_retr(1, sd); - time_t now = time(NULL); + TimeT now = TimeT::now(); if (pc_isGM(sd)) return 0; if (now > sd->chat_reset_due) { - sd->chat_reset_due = now + battle_config.chat_spam_threshold; + sd->chat_reset_due = static_cast<time_t>(now) + battle_config.chat_spam_threshold; sd->chat_lines_in = 0; } if (now > sd->chat_repeat_reset_due) { sd->chat_repeat_reset_due = - now + (battle_config.chat_spam_threshold * 60); + static_cast<time_t>(now) + (battle_config.chat_spam_threshold * 60); sd->chat_total_repeats = 0; } |