From 90735f447e12393f3d89b8c053bd4d8c8a707fa2 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 26 Oct 2008 20:40:30 +0000 Subject: Commit Mantis 509 --- src/map/pc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/map/pc.c') 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 */ -- cgit v1.2.3-70-g09d2