summaryrefslogtreecommitdiff
path: root/src/map/map.hpp
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2018-12-30 16:06:06 -0500
committergumi <git@gumi.ca>2018-12-30 16:32:51 -0500
commita56b3ea671e9cc74b3f9ea723bc149e83212b998 (patch)
treea595027339f278c83e4ca8c30454900bdff7f70a /src/map/map.hpp
parenta860cff760e39dc63de529991131fe295e03f543 (diff)
downloadtmwa-a56b3ea671e9cc74b3f9ea723bc149e83212b998.tar.gz
tmwa-a56b3ea671e9cc74b3f9ea723bc149e83212b998.tar.bz2
tmwa-a56b3ea671e9cc74b3f9ea723bc149e83212b998.tar.xz
tmwa-a56b3ea671e9cc74b3f9ea723bc149e83212b998.zip
pre-send the auth details to map servers instead of blindly trusting 0x0072
Diffstat (limited to 'src/map/map.hpp')
-rw-r--r--src/map/map.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/map/map.hpp b/src/map/map.hpp
index 24037e9..2f6ef21 100644
--- a/src/map/map.hpp
+++ b/src/map/map.hpp
@@ -584,6 +584,12 @@ void map_log(XString line);
#define MAP_LOG(format, ...) \
map_log(STRPRINTF(format, ## __VA_ARGS__))
+#define MAP_LOG_AND_ECHO(...) \
+ do { \
+ PRINTF(__VA_ARGS__); \
+ MAP_LOG(__VA_ARGS__); \
+ } while (0)
+
#define MAP_LOG_PC(sd, fmt, ...) \
MAP_LOG("PC%d %s:%d,%d " fmt, \
sd->status_key.char_id, (sd->bl_m->name_), sd->bl_x, sd->bl_y, ## __VA_ARGS__)
@@ -692,5 +698,14 @@ struct charid2nick
CharName nick;
int req_id;
};
+
+struct AuthFifoEntry
+{
+ AccountId account_id;
+ CharId char_id;
+ int login_id1, login_id2;
+ IP4Address ip;
+ int delflag;
+};
} // namespace map
} // namespace tmwa