Author: cazfi Date: Tue Jun 28 19:03:56 2016 New Revision: 33087 URL: http://svn.gna.org/viewcvs/freeciv?rev=33087&view=rev Log: Made "closest relationship" savecompat error message to tell names of the affected players.
See paych #6627 Modified: trunk/server/savecompat.c Modified: trunk/server/savecompat.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/savecompat.c?rev=33087&r1=33086&r2=33087&view=diff ============================================================================== --- trunk/server/savecompat.c (original) +++ trunk/server/savecompat.c Tue Jun 28 19:03:56 2016 @@ -1169,13 +1169,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