From 90f2d2aeffdb345e9fdfc5c3e56fffa71281f2ee Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Mon, 21 Jan 2013 21:50:36 -0800 Subject: Remove unnecessary includes, speeding up recompilation --- src/map/pc.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'src/map/pc.cpp') diff --git a/src/map/pc.cpp b/src/map/pc.cpp index c25392a..118aa1f 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -1,16 +1,12 @@ #include "pc.hpp" -#include -#include #include #include -#include -#include "../common/db.hpp" +#include "../common/cxxstdio.hpp" #include "../common/mt_rand.hpp" #include "../common/nullpo.hpp" #include "../common/socket.hpp" -#include "../common/timer.hpp" #include "atcommand.hpp" #include "battle.hpp" @@ -19,6 +15,7 @@ #include "clif.hpp" #include "intif.hpp" #include "itemdb.hpp" +#include "magic.hpp" #include "map.hpp" #include "mob.hpp" #include "npc.hpp" @@ -215,7 +212,6 @@ earray equip_pos //= EPOS::ARROW, }}; -//static struct dbt *gm_account_db; static struct gm_account *gm_account = NULL; static @@ -237,16 +233,10 @@ void pc_setdead(struct map_session_data *sd) int pc_isGM(struct map_session_data *sd) { -// struct gm_account *p; int i; nullpo_ret(sd); -/* p = numdb_search(gm_account_db, sd->status.account_id); - if (p == NULL) - return 0; - return p->level;*/ - for (i = 0; i < GM_num; i++) if (gm_account[i].account_id == sd->status.account_id) return gm_account[i].level; @@ -6885,8 +6875,6 @@ int do_init_pc(void) { pc_calc_sigma(); -// gm_account_db = numdb_init(); - add_timer_interval((natural_heal_prev_tick = gettick() + NATURAL_HEAL_INTERVAL), pc_natural_heal, 0, 0, NATURAL_HEAL_INTERVAL); -- cgit v1.2.3-70-g09d2