diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-08-16 18:52:59 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-08-16 18:52:59 +0000 |
commit | 6efed405193d1dd7dc1f517ff4e3366eeef477e3 (patch) | |
tree | f1838bc9d0175eff2fe44690d7f93ffaef06600e /src/map/pc.h | |
parent | 8459713dcadc8ec7e2a1f68f6f6ca24cf5f0d3f3 (diff) | |
download | hercules-6efed405193d1dd7dc1f517ff4e3366eeef477e3.tar.gz hercules-6efed405193d1dd7dc1f517ff4e3366eeef477e3.tar.bz2 hercules-6efed405193d1dd7dc1f517ff4e3366eeef477e3.tar.xz hercules-6efed405193d1dd7dc1f517ff4e3366eeef477e3.zip |
Added pc_isidle() to simplify a few idle-no-share checks.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11026 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.h')
-rw-r--r-- | src/map/pc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/pc.h b/src/map/pc.h index a0302cad0..7e0a8f7bb 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -89,6 +89,7 @@ enum { #define pc_setsit(sd) ((sd)->state.dead_sit = (sd)->vd.dead_sit = 2) #define pc_isdead(sd) ((sd)->state.dead_sit == 1) #define pc_issit(sd) ((sd)->vd.dead_sit == 2) +#define pc_isidle(sd) ((sd)->chatID || (sd)->vender_id || DIFF_TICK(last_tick, sd->idletime) >= battle_config.idle_no_share) #define pc_setdir(sd,b,h) ((sd)->ud.dir = (b) ,(sd)->head_dir = (h) ) #define pc_setchatid(sd,n) ((sd)->chatID = n) #define pc_ishiding(sd) ((sd)->sc.option&(OPTION_HIDE|OPTION_CLOAK|OPTION_CHASEWALK)) |