Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2002:
[Freeciv-Dev] civ expense under anarchy (PR#806)
Home

[Freeciv-Dev] civ expense under anarchy (PR#806)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] civ expense under anarchy (PR#806)
From: jdorje@xxxxxxxxxxxxxxxxxxxxx
Date: Thu, 3 Oct 2002 14:57:27 -0700 (PDT)

The patch says it all...

jason
Index: client//repodlgs_common.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/repodlgs_common.c,v
retrieving revision 1.3
diff -u -r1.3 repodlgs_common.c
--- client//repodlgs_common.c   2002/07/01 21:13:30     1.3
+++ client//repodlgs_common.c   2002/10/03 21:56:01
@@ -49,8 +49,13 @@
       entries[*num_entries_used].total_cost = cost;
       entries[*num_entries_used].cost = cost / count;
       (*num_entries_used)++;
-      
-      *total_cost += cost;
+
+      /* Currently there is no building expense under anarchy.  But
+       * it's not a good idea to hard-code this in the client, but what
+       * else can we do? */
+      if (game.player_ptr->government != game.government_when_anarchy) {
+       *total_cost += cost;
+      }
     }
   } impr_type_iterate_end;
 

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