diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-05-25 13:49:50 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-05-25 13:49:50 -0700 |
commit | 1d0e18a186f67844ccd873eabb56ebdaa3f47f11 (patch) | |
tree | 94199c6dbcb6b4a86584c303f6e1e72073873f01 /src/map/tmw.cpp | |
parent | 87218e07b2bc89593eae1cb4abe859cd1a7eaa0f (diff) | |
download | tmwa-1d0e18a186f67844ccd873eabb56ebdaa3f47f11.tar.gz tmwa-1d0e18a186f67844ccd873eabb56ebdaa3f47f11.tar.bz2 tmwa-1d0e18a186f67844ccd873eabb56ebdaa3f47f11.tar.xz tmwa-1d0e18a186f67844ccd873eabb56ebdaa3f47f11.zip |
Switch block_list and subclasses to dumb_ptr
Now we're well-defined, since we're actually calling ctors and dtors.
Most of this code will not survive long ...
Diffstat (limited to 'src/map/tmw.cpp')
-rw-r--r-- | src/map/tmw.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/tmw.cpp b/src/map/tmw.cpp index 66b8bb9..9740ad8 100644 --- a/src/map/tmw.cpp +++ b/src/map/tmw.cpp @@ -17,14 +17,14 @@ #include "../poison.hpp" static -void tmw_AutoBan(struct map_session_data *sd, const char *reason, int length); +void tmw_AutoBan(dumb_ptr<map_session_data> sd, const char *reason, int length); static -int tmw_CheckChatLameness(struct map_session_data *sd, const char *message); +int tmw_CheckChatLameness(dumb_ptr<map_session_data> sd, const char *message); static int tmw_ShorterStrlen(const char *s1, const char *s2); -int tmw_CheckChatSpam(struct map_session_data *sd, const char *message) +int tmw_CheckChatSpam(dumb_ptr<map_session_data> sd, const char *message) { nullpo_retr(1, sd); TimeT now = TimeT::now(); @@ -86,7 +86,7 @@ int tmw_CheckChatSpam(struct map_session_data *sd, const char *message) return 0; } -void tmw_AutoBan(struct map_session_data *sd, const char *reason, int length) +void tmw_AutoBan(dumb_ptr<map_session_data> sd, const char *reason, int length) { if (length == 0 || sd->auto_ban_info.in_progress) return; @@ -120,7 +120,7 @@ int tmw_ShorterStrlen(const char *s1, const char *s2) } // Returns true if more than 50% of input message is caps or punctuation -int tmw_CheckChatLameness(struct map_session_data *, const char *message) +int tmw_CheckChatLameness(dumb_ptr<map_session_data>, const char *message) { int count, lame; |