Fixed key carrying message bug.
This commit is contained in:
parent
ea323685c9
commit
69145189c9
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue