From c6c8e05fd9d4be9ee871d945dc535f2d9838cfc6 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 31 Oct 2022 05:24:33 +0200 Subject: [PATCH 19/19] score_tooltip(): Consider score of value 0 as unknown. Server sends 0 when the client is not supposed to know actual score. See osdn #45970 Signed-off-by: Marko Lindqvist --- client/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/text.c b/client/text.c index b6f3511ef6..053b83ebc7 100644 --- a/client/text.c +++ b/client/text.c @@ -2074,7 +2074,7 @@ const char *score_tooltip(const struct player *pplayer, int score) { static char buf[1024]; - if (score >= 0) { + if (score > 0) { /* TRANS: %s is a Nation */ fc_snprintf(buf, sizeof(buf), _("%s: score %d"), nation_adjective_for_player(pplayer), score); -- 2.35.1