From 786458a2f4ac9158f3ada004814e55c9b3b8f91e Mon Sep 17 00:00:00 2001 From: Dino Date: Wed, 14 May 2025 23:48:12 -0400 Subject: [PATCH] HR #1238 - in helptext_building(), respect "quiet" = TRUE in "obsolete_by=". --- client/helpdata.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/helpdata.c b/client/helpdata.c index 24a0fd3c3f..1361cbead5 100644 --- a/client/helpdata.c +++ b/client/helpdata.c @@ -1411,14 +1411,16 @@ char *helptext_building(char *buf, size_t bufsz, struct player *pplayer, } requirement_vector_iterate(&pimprove->obsolete_by, pobs) { - if (VUT_ADVANCE == pobs->source.kind && pobs->present) { + if (VUT_ADVANCE == pobs->source.kind + && pobs->present && !pobs->quiet) { cat_snprintf(buf, bufsz, _("%s The discovery of %s will make %s obsolete.\n"), BULLET, advance_name_translation(pobs->source.value.advance), improvement_name_translation(pimprove)); } - if (VUT_IMPROVEMENT == pobs->source.kind && pobs->present) { + if (VUT_IMPROVEMENT == pobs->source.kind + && pobs->present && !pobs->quiet) { cat_snprintf(buf, bufsz, /* TRANS: both %s are improvement names */ _("%s The presence of %s in the city will make %s " -- 2.31.0