Skip to content

Commit

Permalink
Fix: Players don't see closed for inventory engraving when running. F…
Browse files Browse the repository at this point in the history
…ixes #522
  • Loading branch information
elunna committed Dec 4, 2023
1 parent 2b269ac commit dd2f082
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/engrave.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,7 @@ int x, y;
{
register struct engr *ep = engr_at(x, y);
int sensed = 0;

/* We're running, we don't want to look at engravings. */
if (context.run)
return;


/* Sensing an engraving does not require sight,
* nor does it necessarily imply comprehension (literacy).
Expand All @@ -345,6 +342,9 @@ int x, y;
break;
case ENGRAVE:
case HEADSTONE:
/* We're running, we don't want to look at engravings. */
if (context.run && ep->engr_type == HEADSTONE)
return;
if (!Blind || can_reach_floor(TRUE)) {
sensed = 1;
pline("%s is engraved here on the %s.", Something,
Expand Down

0 comments on commit dd2f082

Please sign in to comment.