Author: cazfi
Date: Tue Jun 28 19:04:01 2016
New Revision: 33088

URL: http://svn.gna.org/viewcvs/freeciv?rev=33088&view=rev
Log:
Made "closest relationship" savecompat error message to tell names
of the affected players.

See paych #6627

Modified:
    branches/S2_6/server/savecompat.c

Modified: branches/S2_6/server/savecompat.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/savecompat.c?rev=33088&r1=33087&r2=33088&view=diff
==============================================================================
--- branches/S2_6/server/savecompat.c   (original)
+++ branches/S2_6/server/savecompat.c   Tue Jun 28 19:04:01 2016
@@ -1099,13 +1099,17 @@
       if (closest == DS_NO_CONTACT
           && (current == DS_PEACE
               || current == DS_ALLIANCE)) {
+        const char *name1 = secfile_lookup_str_default(loading->file, "",
+                                                       "player%d.name", plrno);
+        const char *name2 = secfile_lookup_str_default(loading->file, "",
+                                                       "player%d.name", i);
         /* The current relationship is closer than what the save game
          * claims is the closes relationship ever. */
 
         log_sg(_("The save game is wrong about what the closest"
-                 " relationship player %d and player %d have had is."
+                 " relationship %s (player %d) and %s (player %d) have had is."
                  " Fixing it..."),
-               plrno, i);
+               name1, plrno, name2, i);
 
         secfile_replace_int(loading->file, current, "%s.max_state", buf);
       }


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

Reply via email to