summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-03 12:35:34 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-03 12:35:34 +0000
commitcf9b4b50d677a0846c6213acb6bd58fc6ff0d0bb (patch)
treeeeded5380a9eed5e1885b8db9b88ca53e3087a9c /src/map/pc.h
parent92a6b6e9e2593b65e3337dcc45347f22b825a2ed (diff)
downloadhercules-cf9b4b50d677a0846c6213acb6bd58fc6ff0d0bb.tar.gz
hercules-cf9b4b50d677a0846c6213acb6bd58fc6ff0d0bb.tar.bz2
hercules-cf9b4b50d677a0846c6213acb6bd58fc6ff0d0bb.tar.xz
hercules-cf9b4b50d677a0846c6213acb6bd58fc6ff0d0bb.zip
Tried to make sense out of timer.c ... and failed
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11647 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 59bfbea53..de220d54c 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -110,8 +110,8 @@ enum {
#define pc_is90overweight(sd) ( (sd)->weight*10 >= (sd)->max_weight*9 )
#define pc_maxparameter(sd) ( (sd)->class_&JOBL_BABY ? battle_config.max_baby_parameter : battle_config.max_parameter )
-#define pc_stop_attack(sd) { if( (sd)->ud.attacktimer != -1 ) { unit_stop_attack(&(sd)->bl); (sd)->ud.target = 0; } }
-#define pc_stop_walking(sd, type) { if( (sd)->ud.walktimer != -1 ) unit_stop_walking(&(sd)->bl, type); }
+#define pc_stop_walking(sd, type) unit_stop_walking(&(sd)->bl, type)
+#define pc_stop_attack(sd) { if((sd)->ud.attacktimer != -1) { unit_stop_attack(&(sd)->bl); (sd)->ud.target = 0; } }
//Weapon check considering dual wielding.
#define pc_check_weapontype(sd, type) ((type)&((sd)->status.weapon < MAX_WEAPON_TYPE? \