From c080e504e4d74027b985b1ed675c172c083cea76 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Thu, 27 Dec 2012 21:23:46 -0800 Subject: Use cxxstdio --- src/map/map.hpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/map/map.hpp') diff --git a/src/map/map.hpp b/src/map/map.hpp index 7f75427..3d15bb5 100644 --- a/src/map/map.hpp +++ b/src/map/map.hpp @@ -9,6 +9,7 @@ #include #include +#include "../common/cxxstdio.hpp" #include "../common/db.hpp" #include "../common/mmo.hpp" #include "../common/timer.hpp" @@ -699,10 +700,9 @@ int map_quit(struct map_session_data *); // npc int map_addnpc(int, struct npc_data *); -extern FILE *map_logfile; -__attribute__((format(printf, 1, 2))) -void map_write_log(const char *format, ...); -#define MAP_LOG(format, args...) {if (map_logfile) map_write_log(format, ##args);} +void map_log(const_string line); +#define MAP_LOG(format, args...) \ + map_log(static_cast(STRPRINTF(format, ##args))); #define MAP_LOG_PC(sd, fmt, args...) MAP_LOG("PC%d %d:%d,%d " fmt, sd->status.char_id, sd->bl.m, sd->bl.x, sd->bl.y, ## args) @@ -754,7 +754,4 @@ int map_calc_dir(struct block_list *src, int x, int y); int path_search(struct walkpath_data *, int, int, int, int, int, int); int path_blownpos(int m, int x0, int y0, int dx, int dy, int count); - -int map_delmap(char *mapname); - #endif // MAP_HPP -- cgit v1.2.3-60-g2f50