summaryrefslogtreecommitdiff
path: root/src/map/tmw.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2012-12-16 17:47:51 -0800
committerBen Longbons <b.r.longbons@gmail.com>2012-12-24 10:02:00 -0800
commitb52127bcbf817ff8285b36d22198b275327e16bb (patch)
tree7bc596289c011e719168bef846b8cf63bf5d4947 /src/map/tmw.cpp
parent4bd7eeec09629d3c0f900d42c899fe23c69e07b6 (diff)
downloadtmwa-b52127bcbf817ff8285b36d22198b275327e16bb.tar.gz
tmwa-b52127bcbf817ff8285b36d22198b275327e16bb.tar.bz2
tmwa-b52127bcbf817ff8285b36d22198b275327e16bb.tar.xz
tmwa-b52127bcbf817ff8285b36d22198b275327e16bb.zip
Cleanup headers and remove all uses of va_list except logging
Diffstat (limited to 'src/map/tmw.cpp')
-rw-r--r--src/map/tmw.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/map/tmw.cpp b/src/map/tmw.cpp
index d648490..93ab37f 100644
--- a/src/map/tmw.cpp
+++ b/src/map/tmw.cpp
@@ -1,15 +1,13 @@
-//
-
-#include <string.h>
-#include <ctype.h>
-#include <stdarg.h>
-
#include "tmw.hpp"
+#include <cctype>
+#include <cstdarg> // exception to "no va_list" rule
+#include <cstring>
+
+#include "../common/nullpo.hpp"
#include "../common/socket.hpp"
#include "../common/timer.hpp"
#include "../common/version.hpp"
-#include "../common/nullpo.hpp"
#include "atcommand.hpp"
#include "battle.hpp"
@@ -124,7 +122,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 *sd, const char *message)
+int tmw_CheckChatLameness(struct map_session_data *, const char *message)
{
int count, lame;