From 5f6a498393f459678bc662134a511c5ff4ab549b Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 1 Feb 2023 19:23:15 +0200 Subject: [PATCH 40/40] Client: Support --Hackless together with spawned server See osdn #45326 Signed-off-by: Marko Lindqvist --- client/client_main.c | 2 +- client/packhand.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/client_main.c b/client/client_main.c index 0ed4f5a121..5e969c6fdc 100644 --- a/client/client_main.c +++ b/client/client_main.c @@ -437,7 +437,7 @@ int client_main(int argc, char *argv[], bool postpone_tileset) _("Print a summary of the options")); #ifdef FREECIV_DEBUG cmdhelp_add(help, "H", "Hackless", - _("Do not request hack access to local, but not spawned, server")); + _("Do not request hack access to local server")); #endif /* FREECIV_DEBUG */ cmdhelp_add(help, "l", /* TRANS: "log" is exactly what user must type, do not translate. */ diff --git a/client/packhand.c b/client/packhand.c index 3246df734f..3349c019c1 100644 --- a/client/packhand.c +++ b/client/packhand.c @@ -431,9 +431,9 @@ void handle_server_join_reply(bool you_can_join, const char *message, sizeof(client_info.distribution)); send_packet_client_info(&client.conn, &client_info); - /* we could always use hack, verify we're local */ + /* We could always use hack, verify we're local */ #ifdef FREECIV_DEBUG - if (!hackless || is_server_running()) + if (!hackless) #endif /* FREECIV_DEBUG */ { send_client_wants_hack(challenge_file); -- 2.39.1