summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2008-10-26 20:40:30 +0000
committerJared Adams <jaxad0127@gmail.com>2008-10-26 20:40:30 +0000
commit90735f447e12393f3d89b8c053bd4d8c8a707fa2 (patch)
treedc6757d0b88d3f7ba9f7f545aba437983bc0255b /src/map/pc.c
parent7f21ec064e78bf8d06ae341d1d61e12516970719 (diff)
downloadtmwa-90735f447e12393f3d89b8c053bd4d8c8a707fa2.tar.gz
tmwa-90735f447e12393f3d89b8c053bd4d8c8a707fa2.tar.bz2
tmwa-90735f447e12393f3d89b8c053bd4d8c8a707fa2.tar.xz
tmwa-90735f447e12393f3d89b8c053bd4d8c8a707fa2.zip
Commit Mantis 509
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 64057e7..2d4e48c 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -3058,19 +3058,24 @@ int pc_takeitem(struct map_session_data *sd,struct flooritem_data *fitem)
fitem->third_get_id = 0;
}
+fprintf(stderr, "pickuptime = %d, ticktime = %d\n", fitem->first_get_tick, tick);
+fprintf(stderr, "canpickup-1 = %d\n", can_pick_item_up_from (sd, fitem->second_get_id));
can_take = can_pick_item_up_from (sd, fitem->first_get_id);
-
+fprintf(stderr, "Can take at L%d? %d\n", __LINE__, can_take);
if (!can_take)
can_take = fitem->first_get_tick <= tick
&& can_pick_item_up_from (sd, fitem->second_get_id);
+fprintf(stderr, "Can take at L%d? %d\n", __LINE__, can_take);
if (!can_take)
can_take = fitem->second_get_tick <= tick
&& can_pick_item_up_from (sd, fitem->third_get_id);
+fprintf(stderr, "Can take at L%d? %d\n", __LINE__, can_take);
if (!can_take)
can_take = fitem->third_get_tick <= tick;
+fprintf(stderr, "Can take at L%d? %d\n", __LINE__, can_take);
if (can_take) {
/* Can pick up */