summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-09 03:27:59 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-09 03:27:59 +0000
commit33af82efa149ada28596fa6b815cc66605577b98 (patch)
tree1b17b374c0f4f0a4f2438633c2ad6e7f9b809d90 /src/map/pc.h
parent2685644efe22ad7b250d1c3de02141993f287d38 (diff)
downloadhercules-33af82efa149ada28596fa6b815cc66605577b98.tar.gz
hercules-33af82efa149ada28596fa6b815cc66605577b98.tar.bz2
hercules-33af82efa149ada28596fa6b815cc66605577b98.tar.xz
hercules-33af82efa149ada28596fa6b815cc66605577b98.zip
Added minor autolootitem code improvement. saves from scenarios like:
Kill a monsters on a aoe, with 10 drops looking up a empty autolootitem array -- 100 times ? -- (10 per loot with AUTOLOOITEM_SIZE as 10). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15556 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index c0863bb1d..34c05d7b8 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -140,6 +140,7 @@ struct map_session_data {
short pmap; // Previous map on Map Change
unsigned short autoloot;
unsigned short autolootid[AUTOLOOTITEM_SIZE]; // [Zephyrus]
+ unsigned int autolooting : 1; //performance-saver, autolooting state for @alootid
unsigned short autobonus; //flag to indicate if an autobonus is activated. [Inkfish]
struct guild *gmaster_flag;
unsigned int prevend : 1;//used to flag wheather you've spent 40sp to open the vending or not.