summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-08 18:22:58 -0300
committerEuphy <euphy@rathena.org>2013-06-15 15:43:55 -0400
commit037521711a684427573aa40287361dddf67d6a4f (patch)
tree2e96fdd7a0aeb20e91b204feeaebe90d300cc091
parent49b301ad0c55cb222b751402846fe2f9c5bd82d9 (diff)
downloadhercules-037521711a684427573aa40287361dddf67d6a4f.tar.gz
hercules-037521711a684427573aa40287361dddf67d6a4f.tar.bz2
hercules-037521711a684427573aa40287361dddf67d6a4f.tar.xz
hercules-037521711a684427573aa40287361dddf67d6a4f.zip
Fixed Bug #7332
http://hercules.ws/board/tracker/issue-7332-latest-rev-compiling-error/ Signed-off-by: shennetsind <ind@henn.et>
-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;