Set created keys to Bob's position.

This commit is contained in:
Steve 2018-03-07 21:36:57 +00:00
parent ea15674fd4
commit 9404312594
1 changed files with 3 additions and 0 deletions

View File

@ -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);