From bf35dc3557f6759aaff94b06fed0eda5542c464e Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Fri, 16 Oct 2026 15:12:42 +0300
Subject: [PATCH 34/34] Fix sending explanations about failed actions

Reported by Andrew McGuinness

See RM #2374

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 server/unithand.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/server/unithand.c b/server/unithand.c
index 0f77c4d41a..b3a2a62539 100644
--- a/server/unithand.c
+++ b/server/unithand.c
@@ -3520,7 +3520,7 @@ bool unit_perform_action(struct player *pplayer,
   } else {                                                                \
     illegal_action(pplayer, actor_unit, action_type,                      \
                    pcity ? city_owner(pcity) : NULL, NULL, pcity, NULL,   \
-                   TRUE, requester);                                      \
+                   REQEST_PLAYER_INITIATED, requester);                   \
   }
 
 #define ACTION_PERFORM_UNIT_SELF(action, actor, action_performer)         \
@@ -3544,7 +3544,7 @@ bool unit_perform_action(struct player *pplayer,
   } else {                                                                \
     illegal_action(pplayer, actor_unit, action_type,                      \
                    unit_owner(actor_unit), NULL, NULL, actor_unit,        \
-                   TRUE, requester);                                      \
+                   REQEST_PLAYER_INITIATED, requester);                   \
   }
 
 #define ACTION_PERFORM_UNIT_UNIT(action, actor, target, action_performer) \
@@ -3574,7 +3574,7 @@ bool unit_perform_action(struct player *pplayer,
   } else {                                                                \
     illegal_action(pplayer, actor_unit, action_type,                      \
                    punit ? unit_owner(punit) : NULL, NULL, NULL, punit,   \
-                   TRUE, requester);                                      \
+                   REQEST_PLAYER_INITIATED, requester);                   \
   }
 
 #define ACTION_PERFORM_UNIT_STACK(action, actor, target, action_performer)\
@@ -3606,7 +3606,7 @@ bool unit_perform_action(struct player *pplayer,
   } else {                                                                \
     illegal_action(pplayer, actor_unit, action_type,                      \
                    NULL, target_tile, NULL, NULL,                         \
-                   TRUE, requester);                                      \
+                   REQEST_PLAYER_INITIATED, requester);                   \
   }
 
 #define ACTION_PERFORM_UNIT_TILE(action, actor, target, action_performer) \
@@ -3634,7 +3634,7 @@ bool unit_perform_action(struct player *pplayer,
     illegal_action(pplayer, actor_unit, action_type,                      \
                    target_tile ? tile_owner(target_tile) : NULL,          \
                    target_tile, NULL, NULL,                               \
-                   TRUE, requester);                                      \
+                   REQEST_PLAYER_INITIATED, requester);                   \
   }
 
 #define ACTION_PERFORM_UNIT_EXTRAS(action, actor, target, action_performer)\
@@ -3662,7 +3662,7 @@ bool unit_perform_action(struct player *pplayer,
     illegal_action(pplayer, actor_unit, action_type,                      \
                    target_tile ? target_tile->extras_owner : NULL,        \
                    target_tile, NULL, NULL,                               \
-                   TRUE, requester);                                      \
+                   REQEST_PLAYER_INITIATED, requester);                   \
   }
 
 #define ACTION_PERFORM_UNIT_ANY(paction, actor,                           \
-- 
2.53.0

