From 812efcb575ff2a8bcecdffd66c092cdcafae14cd Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Fri, 16 Oct 2026 15:08:45 +0300
Subject: [PATCH 82/82] 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 40ec5b73c6..bde5bd6a72 100644
--- a/server/unithand.c
+++ b/server/unithand.c
@@ -3544,7 +3544,7 @@ bool unit_perform_action(struct player *pplayer,
   } else {                                                                \
     illegal_action(pplayer, actor_unit, action_type,                      \
                    pcity ? city_owner(pcity) : nullptr, nullptr, pcity,   \
-                   nullptr, TRUE, requester);                             \
+                   nullptr, REQEST_PLAYER_INITIATED, requester);          \
   }
 
 #define ACTION_PERFORM_UNIT_SELF(action, actor, action_performer)         \
@@ -3568,7 +3568,7 @@ bool unit_perform_action(struct player *pplayer,
   } else {                                                                \
     illegal_action(pplayer, actor_unit, action_type,                      \
                    unit_owner(actor_unit), nullptr, nullptr, actor_unit,  \
-                   TRUE, requester);                                      \
+                   REQEST_PLAYER_INITIATED, requester);                   \
   }
 
 #define ACTION_PERFORM_UNIT_UNIT(action, actor, target, action_performer) \
@@ -3599,7 +3599,7 @@ bool unit_perform_action(struct player *pplayer,
   } else {                                                                \
     illegal_action(pplayer, actor_unit, action_type,                      \
                    punit ? unit_owner(punit) : nullptr, nullptr, nullptr, \
-                   punit, TRUE, requester);                               \
+                   punit, REQEST_PLAYER_INITIATED, requester);            \
   }
 
 #define ACTION_PERFORM_UNIT_STACK(action, actor, target, action_performer)\
@@ -3631,7 +3631,7 @@ bool unit_perform_action(struct player *pplayer,
   } else {                                                                \
     illegal_action(pplayer, actor_unit, action_type,                      \
                    nullptr, target_tile, nullptr, nullptr,                \
-                   TRUE, requester);                                      \
+                   REQEST_PLAYER_INITIATED, requester);                   \
   }
 
 #define ACTION_PERFORM_UNIT_TILE(action, actor, target, action_performer) \
@@ -3659,7 +3659,7 @@ bool unit_perform_action(struct player *pplayer,
     illegal_action(pplayer, actor_unit, action_type,                      \
                    target_tile ? tile_owner(target_tile) : nullptr,       \
                    target_tile, nullptr, nullptr,                         \
-                   TRUE, requester);                                      \
+                   REQEST_PLAYER_INITIATED, requester);                   \
   }
 
 #define ACTION_PERFORM_UNIT_EXTRAS(action, actor, target, action_performer)\
@@ -3687,7 +3687,7 @@ bool unit_perform_action(struct player *pplayer,
     illegal_action(pplayer, actor_unit, action_type,                      \
                    target_tile ? target_tile->extras_owner : nullptr,     \
                    target_tile, nullptr, nullptr,                         \
-                   TRUE, requester);                                      \
+                   REQEST_PLAYER_INITIATED, requester);                   \
   }
 
 #define ACTION_PERFORM_UNIT_ANY(paction, actor,                           \
-- 
2.53.0

