From a08d52c2fb200ef1ab7715a90560f9af1097d6da Mon Sep 17 00:00:00 2001 From: Steve Date: Sat, 3 Mar 2018 16:05:55 +0000 Subject: [PATCH] When dropping carried items, allow them to be picked up again(!) --- src/game/game.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/game.c b/src/game/game.c index b785c5d..1789f03 100644 --- a/src/game/game.c +++ b/src/game/game.c @@ -184,6 +184,10 @@ void dropCarriedItems(void) item->flags &= ~EF_GONE; item->x = world.bob->checkpoints[0].x; item->y = world.bob->checkpoints[0].y; + item->collected = 0; + item->canBeCarried = 1; + item->canBePickedUp = 1; + /* items can only be collected if they have a thinktime of 0 */ item->thinkTime = FPS * 9999; }