Author: cazfi
Date: Tue Nov 10 22:48:36 2015
New Revision: 30523

URL: http://svn.gna.org/viewcvs/freeciv?rev=30523&view=rev
Log:
Tell name of the tech gained from EFT_GIVE_IMM_TECH building.

See bug #24036

Modified:
    branches/S2_5/server/cityturn.c

Modified: branches/S2_5/server/cityturn.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/server/cityturn.c?rev=30523&r1=30522&r2=30523&view=diff
==============================================================================
--- branches/S2_5/server/cityturn.c     (original)
+++ branches/S2_5/server/cityturn.c     Tue Nov 10 22:48:36 2015
@@ -1669,21 +1669,24 @@
     if ((mod = get_current_construction_bonus(pcity, EFT_GIVE_IMM_TECH,
                                               RPT_CERTAIN))) {
       int i;
+      const char *provider = improvement_name_translation(pimprove);
 
       notify_player(pplayer, NULL, E_TECH_GAIN, ftc_server,
                    PL_("%s boosts research; you gain %d immediate advance.",
                        "%s boosts research; you gain %d immediate advances.",
-                       mod),
-                   improvement_name_translation(pimprove), mod);
+                       mod), provider, mod);
 
       for (i = 0; i < mod; i++) {
        Tech_type_id tech = give_immediate_free_tech(pplayer);
+        const char *adv_name = advance_name_for_player(pplayer, tech);
+
+        notify_player(pplayer, NULL, E_TECH_GAIN, ftc_server,
+                      _("Acquired %s from %s."), adv_name, provider);
 
         notify_embassies(pplayer, NULL, NULL, E_TECH_GAIN, ftc_server,
                          _("The %s have acquired %s from %s."),
-                         nation_plural_for_player(pplayer),
-                         advance_name_for_player(pplayer, tech),
-                         improvement_name_translation(pimprove));
+                         nation_plural_for_player(pplayer), adv_name,
+                         provider);
       }
     }
     if (space_part && pplayer->spaceship.state == SSHIP_NONE) {


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to