From a0eeb31a18d264a86809638d9378f5c7f9b37945 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 9 Oct 2021 06:36:49 +0300 Subject: [PATCH 41/42] Take ANEK_ACT_NOT_ENOUGH_MONEY message reimplementation to use Two different implementations of this existed in the code, better one being dead code after a "break;" I assume this to be result of a failed attempt to replace the older implementation with it. Take the better implementation to use, and drop the older one. See osdn #42901 Signed-off-by: Marko Lindqvist --- server/unithand.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/server/unithand.c b/server/unithand.c index b0620c0d65..326e27809f 100644 --- a/server/unithand.c +++ b/server/unithand.c @@ -2010,12 +2010,6 @@ static void explain_why_no_action_enabled(struct unit *punit, unit_name_translation(punit)); break; case ANEK_ACT_NOT_ENOUGH_MONEY: - notify_player(pplayer, target_tile, E_BAD_COMMAND, ftc_server, - /* TRANS: Spy ... 154 */ - _("You can't afford having your %s do anything." - " %d gold needed."), - unit_name_translation(punit), explnat->gold_needed); - break; { char tbuf[MAX_LEN_MSG]; @@ -2035,6 +2029,7 @@ static void explain_why_no_action_enabled(struct unit *punit, unit_name_translation(punit), explnat->gold_needed, tbuf); } + break; case ANEK_TRIREME_MOVE: notify_player(pplayer, target_tile, E_BAD_COMMAND, ftc_server, _("%s cannot move that far from the coast line."), -- 2.33.0