revert box naming

This commit is contained in:
nhmall
2018-03-19 07:13:07 -04:00
parent b85b7b93f0
commit 7238803b25
3 changed files with 7 additions and 18 deletions

View File

@@ -548,18 +548,9 @@ doforce()
xlock.box = (struct obj *) 0;
for (otmp = level.objects[u.ux][u.uy]; otmp; otmp = otmp->nexthere)
if (Is_box(otmp)) {
if (otmp->obroken) {
There("is %s here%s.", doname(otmp),
/* The displayed name will have already stated
* "with a broken lock" if otmp->lknown is already set
* so suppress the additional notification about the
* lock in that case. */
!otmp->lknown ? ", but its lock is already broken" : "");
otmp->lknown = 1;
continue;
} else if (!otmp->olocked) {
There("is %s here, but its lock is already unlocked.",
doname(otmp));
if (otmp->obroken || !otmp->olocked) {
There("is %s here, but its lock is already %s.", doname(otmp),
otmp->obroken ? "broken" : "unlocked");
otmp->lknown = 1;
continue;
}