messages when destroying a chest

Remove the special case of "the" vs "a" in chest_shatter_msg(), just
use an/An as appropriate.
This commit is contained in:
cohrs
2002-07-05 15:58:16 +00:00
parent bd7c4e4af8
commit 194e43f882

View File

@@ -872,12 +872,12 @@ STATIC_OVL void
chest_shatter_msg(otmp)
struct obj *otmp;
{
const char *disposition, *article = (otmp->quan > 1L) ? "A" : "The";
const char *disposition;
const char *thing;
long save_Blinded;
if (otmp->oclass == POTION_CLASS) {
You("%s a %s shatter!", Blind ? "hear" : "see", bottlename());
You("%s %s shatter!", Blind ? "hear" : "see", an(bottlename()));
if (!breathless(youmonst.data) || haseyes(youmonst.data))
potionbreathe(otmp);
return;
@@ -904,7 +904,7 @@ struct obj *otmp;
default: disposition = "is destroyed";
break;
}
pline("%s %s %s!", article, thing, disposition);
pline("%s %s!", An(thing), disposition);
}
#endif /* OVLB */