From e0e3a0baf6afad2f1cbb4914e88bebe5b3d4a23a Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 8 Oct 2022 04:01:33 +0300 Subject: [PATCH 38/38] Make try_to_autoconnect() warning_shown boolean See osdn #44901 Signed-off-by: Marko Lindqvist --- client/clinet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/clinet.c b/client/clinet.c index bfc2cebc16..c62496c132 100644 --- a/client/clinet.c +++ b/client/clinet.c @@ -495,7 +495,7 @@ double try_to_autoconnect(void) char errbuf[512]; static int count = 0; #ifndef FREECIV_MSWINDOWS - static int warning_shown = 0; + static bool warning_shown = FALSE; #endif if (!autoconnecting) { @@ -523,7 +523,7 @@ double try_to_autoconnect(void) log_error("Connection to server refused. Please start the server."); output_window_append(ftc_client, _("Connection to server refused. " "Please start the server.")); - warning_shown = 1; + warning_shown = TRUE; } /* Try again in 0.5 seconds */ return 0.001 * AUTOCONNECT_INTERVAL; -- 2.35.1