Fixed key carrying message bug.
This commit is contained in:
parent
ea323685c9
commit
69145189c9
|
@ -134,17 +134,19 @@ static void bobPickupItem(void)
|
||||||
{
|
{
|
||||||
if (i->thinkTime == 0)
|
if (i->thinkTime == 0)
|
||||||
{
|
{
|
||||||
addItem(i);
|
if (addItem(i))
|
||||||
game.stats[STAT_KEYS_FOUND]++;
|
{
|
||||||
updateObjective("KEY");
|
game.stats[STAT_KEYS_FOUND]++;
|
||||||
|
updateObjective("KEY");
|
||||||
|
|
||||||
setGameplayMessage(MSG_STANDARD, _("Picked up a %s"), i->name);
|
setGameplayMessage(MSG_STANDARD, _("Picked up a %s"), i->name);
|
||||||
|
|
||||||
playSound(SND_KEY, CH_ITEM);
|
playSound(SND_KEY, CH_ITEM);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
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)
|
||||||
|
|
Loading…
Reference in New Issue