Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Prevent {squelch} being shown for unknown items examined or purchased…

… in stores.
  • Loading branch information...
commit 0197e3c0675bc394950db7da0991c3097a3572a5 1 parent a25c120
@magnate magnate authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/store.c
View
9 src/store.c
@@ -2419,7 +2419,8 @@ static bool store_purchase(int item)
}
/* Describe the object (fully) */
- object_desc(o_name, sizeof(o_name), i_ptr, ODESC_PREFIX | ODESC_FULL);
+ object_desc(o_name, sizeof(o_name), i_ptr, ODESC_PREFIX | ODESC_FULL |
+ ODESC_STORE);
/* Attempt to buy it */
if (store->sidx != STORE_HOME)
@@ -2778,8 +2779,10 @@ static void store_examine(int item)
o_ptr = &store->stock[item];
/* Show full info in most stores, but normal info in player home */
- tb = object_info(o_ptr, (store->sidx != STORE_HOME) ? OINFO_FULL : OINFO_NONE);
- object_desc(header, sizeof(header), o_ptr, ODESC_PREFIX | ODESC_FULL);
+ tb = object_info(o_ptr, (store->sidx != STORE_HOME) ? OINFO_FULL :
+ OINFO_NONE);
+ object_desc(header, sizeof(header), o_ptr, ODESC_PREFIX | ODESC_FULL |
+ ODESC_STORE);
textui_textblock_show(tb, area, header);
textblock_free(tb);
Please sign in to comment.
Something went wrong with that request. Please try again.