summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-05-23 07:12:02 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-05-23 07:12:02 +0000
commitd436404bd7279a831804f0536e97e29dd484f7bb (patch)
treeafd48d6a8e0aa78fb54743b3c179e5ef3f1cf65c /src/map/pc.h
parentbc6ac0943bd618ae8cc484ba517d75d417e612a7 (diff)
downloadhercules-d436404bd7279a831804f0536e97e29dd484f7bb.tar.gz
hercules-d436404bd7279a831804f0536e97e29dd484f7bb.tar.bz2
hercules-d436404bd7279a831804f0536e97e29dd484f7bb.tar.xz
hercules-d436404bd7279a831804f0536e97e29dd484f7bb.zip
* Changed enumerating defines into enumerations (related topic:264007).
- Minor fixups on few macros. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14831 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index ca4f671a4..f2767dd57 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -580,8 +580,8 @@ int pc_calc_skilltree(struct map_session_data *sd);
int pc_calc_skilltree_normalize_job(struct map_session_data *sd);
int pc_clean_skilltree(struct map_session_data *sd);
-#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_checkoverhp(sd) ((sd)->battle_status.hp == (sd)->battle_status.max_hp)
+#define pc_checkoversp(sd) ((sd)->battle_status.sp == (sd)->battle_status.max_sp)
int pc_setpos(struct map_session_data* sd, unsigned short mapindex, int x, int y, clr_type clrtype);
int pc_setsavepoint(struct map_session_data*,short,int,int);