19.07.2016, 15:05
Some pseudo-code of what I thought of:
Code:
#define MAX_DROPPED_ITEMS = 50 new lastDroppedItemIndex = 0 new droppedItems[MAX_DROPPED_ITEMS] function DropItem(item) { if lastDroppedItemIndex == 50 then lastDroppedItemIndex = 0 droppedItems[lastDroppedItemIndex] = item lastDroppedItemIndex++ }