From 9404312594c3ffae212444dcd19b969860cf9ae0 Mon Sep 17 00:00:00 2001 From: Steve Date: Wed, 7 Mar 2018 21:36:57 +0000 Subject: [PATCH] Set created keys to Bob's position. --- src/game/game.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/game.c b/src/game/game.c index 250c2d8..c3cdc94 100644 --- a/src/game/game.c +++ b/src/game/game.c @@ -235,6 +235,9 @@ void addKeysFromStash(void) item->init(); item->animate(); + item->x = item->startX = world.bob->x; + item->y = item->startY = world.bob->y; + addItem(item, t->value.i); SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_DEBUG, "Added %s (x%d) to inventory", item->name, item->value);