summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-08 18:22:58 -0300
committershennetsind <ind@henn.et>2013-06-08 18:22:58 -0300
commit1f983da55f7ee40da651bb84bab518ddc7312dbc (patch)
tree7e67fb73b94f64d5d05d82408d81e3f827a6e73f /src
parentb87411a3ea1c241d1cd42d240e07f37c33356baa (diff)
downloadhercules-1f983da55f7ee40da651bb84bab518ddc7312dbc.tar.gz
hercules-1f983da55f7ee40da651bb84bab518ddc7312dbc.tar.bz2
hercules-1f983da55f7ee40da651bb84bab518ddc7312dbc.tar.xz
hercules-1f983da55f7ee40da651bb84bab518ddc7312dbc.zip
Fixed Bug #7332
http://hercules.ws/board/tracker/issue-7332-latest-rev-compiling-error/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r--src/map/pc.c2
-rw-r--r--src/map/pc.h39
2 files changed, 4 insertions, 37 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 3146ba03e..170de63ff 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -10091,5 +10091,7 @@ void pc_defaults(void) {
pc->del_talisman = pc_del_talisman;
pc->baselevelchanged = pc_baselevelchanged;
+#if defined(RENEWAL_DROP) || defined(RENEWAL_EXP)
pc->level_penalty_mod = pc_level_penalty_mod;
+#endif
}
diff --git a/src/map/pc.h b/src/map/pc.h
index f7c67b564..ebf474823 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -683,30 +683,9 @@ enum equip_pos {
#define pc_has_permission(sd, permission) ( ((sd)->permissions&permission) != 0 )
#define pc_should_log_commands(sd) ( (sd)->group_log_command != false )
-
-
-
-
#define pc_checkoverhp(sd) ((sd)->battle_status.hp == (sd)->battle_status.max_hp)
#define pc_checkoversp(sd) ((sd)->battle_status.sp == (sd)->battle_status.max_sp)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
#define pc_readglobalreg(sd,reg) pc->readregistry(sd,reg,3)
#define pc_setglobalreg(sd,reg,val) pc->setregistry(sd,reg,val,3)
#define pc_readglobalreg_str(sd,reg) pc->readregistry_str(sd,reg,3)
@@ -720,13 +699,6 @@ enum equip_pos {
#define pc_readaccountreg2str(sd,reg) pc->readregistry_str(sd,reg,1)
#define pc_setaccountreg2str(sd,reg,val) pc->setregistry_str(sd,reg,val,1)
-
-
-
-
-
-
-
struct skill_tree_entry {
short id;
unsigned short idx;
@@ -758,15 +730,6 @@ extern struct fame_list taekwon_fame_list[MAX_FAME_LIST];
enum {ADDITEM_EXIST,ADDITEM_NEW,ADDITEM_OVERAMOUNT};
-
-
-
-
-
-
-
-
-
#if defined(RENEWAL_DROP) || defined(RENEWAL_EXP)
#endif
/*=====================================
@@ -981,7 +944,9 @@ struct pc_interface {
int (*del_talisman) (struct map_session_data *sd,int count,int type);
void (*baselevelchanged) (struct map_session_data *sd);
+#if defined(RENEWAL_DROP) || defined(RENEWAL_EXP)
int (*level_penalty_mod) (struct map_session_data *sd, struct mob_data * md, int type);
+#endif
} pc_s;
struct pc_interface *pc;