Fixed key carrying message bug.

This commit is contained in:
Steve 2018-02-14 07:12:47 +00:00
parent ea323685c9
commit 69145189c9
1 changed files with 11 additions and 9 deletions

View File

@ -134,7 +134,8 @@ static void bobPickupItem(void)
{ {
if (i->thinkTime == 0) if (i->thinkTime == 0)
{ {
addItem(i); if (addItem(i))
{
game.stats[STAT_KEYS_FOUND]++; game.stats[STAT_KEYS_FOUND]++;
updateObjective("KEY"); updateObjective("KEY");
@ -147,6 +148,7 @@ static void bobPickupItem(void)
setGameplayMessage(MSG_GAMEPLAY, _("Can't carry any more keys")); setGameplayMessage(MSG_GAMEPLAY, _("Can't carry any more keys"));
} }
} }
}
else if (i->canBeCarried) else if (i->canBeCarried)
{ {
if (addItem(i)) if (addItem(i))