<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39938 >

Trivial patch looks like this. Tested on trunk but is probably
harmless on any branch, including 2.1


>From c8c28d54c5e6fa266a045a6cf78555abc54ec036 Mon Sep 17 00:00:00 2001
From: Ulrik Sverdrup <[EMAIL PROTECTED]>
Date: Thu, 10 Apr 2008 16:15:42 +0200
Subject: [PATCH] (PR#39938) paratroopers 'disapear' when dropped on protected city

Make sure the "paratroopers killed when dropped on city"-message is
displayed by default, by changing its message category to
Unit: Defender destroyed (E_UNIT_LOST), just like paradrops into the
 server/unittools.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/unittools.c b/server/unittools.c
index 1ac2fdf..cd5ad7a 100644
--- a/server/unittools.c
+++ b/server/unittools.c
@@ -2199,7 +2199,7 @@ bool do_paradrop(struct unit *punit, struct tile *ptile)
       || is_non_allied_unit_tile(ptile, pplayer)) {
     map_show_circle(pplayer, ptile, unit_type(punit)->vision_radius_sq);
     maybe_make_contact(ptile, pplayer);
-    notify_player(pplayer, ptile, E_UNIT_LOST_ATT,
+    notify_player(pplayer, ptile, E_UNIT_LOST,
                      _("Your %s was killed by enemy units at the "
                        "paradrop destination."),

Freeciv-dev mailing list

Reply via email to