<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39325 >

On 05/04/07, Dawn Lepard <[EMAIL PROTECTED]> wrote:
>
> On the Target Worklist and Source Tasks, Women's Suffrage appears to
> be mixed up with Capitalization. I'm told that Women's Suffrage costs
> 5/turn (my town produces 5 resource).

 Flags for buildings are not initialized, causing flags sometimes to
be set for wrong buildings. Attached patch fixes this.


 - ML

diff -Nurd -X.diff_ignore freeciv/server/ruleset.c freeciv/server/ruleset.c
--- freeciv/server/ruleset.c	2007-08-03 22:01:12.000000000 +0300
+++ freeciv/server/ruleset.c	2007-08-04 19:33:53.000000000 +0300
@@ -1340,6 +1340,8 @@
     }
 
     slist = secfile_lookup_str_vec(file, &nflags, "%s.flags", sec[i]);
+    b->flags = 0;
+
     for(j=0; j<nflags; j++) {
       sval = slist[j];
       if(strcmp(sval,"")==0) {
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to