summaryrefslogtreecommitdiff
path: root/src/map/mob.h
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-07-26 23:27:40 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-07-26 23:27:40 +0000
commit7d0670e755c689eed12af0f8b89b936557f897c9 (patch)
treeda4288905c52482a6b6f5cfbae24c971c7c26d9b /src/map/mob.h
parentb963aedae50de5e9238e1dc2d2d6fdf93cbbe302 (diff)
downloadhercules-7d0670e755c689eed12af0f8b89b936557f897c9.tar.gz
hercules-7d0670e755c689eed12af0f8b89b936557f897c9.tar.bz2
hercules-7d0670e755c689eed12af0f8b89b936557f897c9.tar.xz
hercules-7d0670e755c689eed12af0f8b89b936557f897c9.zip
* Cleaned up mob drop code, crashfix is still needed though...
* Reduced ignore-list length to 20, added proper reply packet * Cleaned up some very poorly written pm-ignore code (see r141) * Fixed a typo in Warp Portal code displaying an incorrect map name git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10915 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.h')
-rw-r--r--src/map/mob.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/map/mob.h b/src/map/mob.h
index 190cf799b..c17104d6e 100644
--- a/src/map/mob.h
+++ b/src/map/mob.h
@@ -129,21 +129,15 @@ enum {
};
-/*==========================================
- * The structure object for item drop with delay
- * Since it is only two being able to pass [ int ] a timer function
- * Data is put in and passed to this structure object.
- *------------------------------------------
- */
+// The data structures for storing delayed item drops
struct item_drop {
struct item item_data;
- struct item_drop *next;
+ struct item_drop* next;
};
-
struct item_drop_list {
- int m,x,y;
- struct map_session_data *first_sd,*second_sd,*third_sd;
- struct item_drop *item;
+ int m, x, y; // coordinates
+ struct map_session_data *first_sd, *second_sd, *third_sd; // sd's of players with higher pickup priority
+ struct item_drop* item; // linked list of drops
};
struct mob_db* mob_db(int class_);