Author: jtn Date: Wed Nov 25 01:49:49 2015 New Revision: 30754 URL: http://svn.gna.org/viewcvs/freeciv?rev=30754&view=rev Log: Mention 'nationset' option when issuing an error message about lack of nations in a ruleset with multiple nationsets.
Reported by akfaew@gna. See gna bug #24116. Modified: branches/S2_6/server/settings.c branches/S2_6/server/stdinhand.c Modified: branches/S2_6/server/settings.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/settings.c?rev=30754&r1=30753&r2=30754&view=diff ============================================================================== --- branches/S2_6/server/settings.c (original) +++ branches/S2_6/server/settings.c Wed Nov 25 01:49:49 2015 @@ -623,7 +623,8 @@ * (However, new connections will start out detached.) */ if (normal_player_count() > server.playable_nations) { notify_conn(NULL, NULL, E_SETTING, ftc_server, "%s", - _("Warning: not enough nations for all current players.")); + _("Warning: not enough nations in this nationset " + "for all current players.")); } send_nation_availability(game.est_connections, TRUE); Modified: branches/S2_6/server/stdinhand.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/stdinhand.c?rev=30754&r1=30753&r2=30754&view=diff ============================================================================== --- branches/S2_6/server/stdinhand.c (original) +++ branches/S2_6/server/stdinhand.c Wed Nov 25 01:49:49 2015 @@ -982,8 +982,14 @@ } /* Check that we have nations available */ if (normal_player_count() >= server.playable_nations) { - fc_snprintf(buf, buflen, - _("Can't add more players, not enough nations.")); + if (nation_set_count() > 1) { + fc_snprintf(buf, buflen, + _("Can't add more players, not enough playable nations " + "in current nationset (see 'nationset' setting).")); + } else { + fc_snprintf(buf, buflen, + _("Can't add more players, not enough playable nations.")); + } return C_FAIL; } } @@ -5635,9 +5641,16 @@ _("No players; game will not start.")); return FALSE; } else if (normal_player_count() > server.playable_nations) { - start_cmd_reply(caller, notify, - _("Not enough nations for all players; game will " - "not start.")); + if (nation_set_count() > 1) { + start_cmd_reply(caller, notify, + _("Not enough nations in the current nationset " + "for all players; game will not start. " + "(See 'nationset' setting.)")); + } else { + start_cmd_reply(caller, notify, + _("Not enough nations for all players; game will " + "not start.")); + } return FALSE; } else if (strlen(game.server.start_units) == 0 && !game.server.start_city) { start_cmd_reply(caller, notify, _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits