Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] Re: (PR#10218) Too few nations in civ1 ruleset
Home

[Freeciv-Dev] Re: (PR#10218) Too few nations in civ1 ruleset

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: marko.lindqvist@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#10218) Too few nations in civ1 ruleset
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 21 Sep 2004 14:40:27 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10218 >

I *think* this patch should fix it.  nation_count includes the barbarian 
and observer nations while playable_nation_count does not (this should 
be better documented).

Can anyone test this?

jason


Index: server/citytools.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/citytools.c,v
retrieving revision 1.274
diff -u -r1.274 citytools.c
--- server/citytools.c  14 Sep 2004 03:29:22 -0000      1.274
+++ server/citytools.c  21 Sep 2004 21:38:27 -0000
@@ -1175,7 +1175,7 @@
   
   if (is_capital(pcity)
       && city_list_size(&cplayer->cities) >= game.civilwarsize
-      && game.nplayers < game.nation_count
+      && game.nplayers < game.playable_nation_count
       && game.civilwarsize < GAME_MAX_CIVILWARSIZE
       && get_num_human_and_ai_players() < MAX_NUM_PLAYERS
       && civil_war_triggered(cplayer)) {

[Prev in Thread] Current Thread [Next in Thread]