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

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

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: civ expense under anarchy (PR#806)
From: rf13@xxxxxxxxxxxxxxxxx
Date: Fri, 4 Oct 2002 04:04:16 -0700

On Thu, Oct 03, 2002 at 02:57:27PM -0700, jdorje@xxxxxxxxxxxxxxxxxxxxx wrote:
> 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? */

We could add a "has-improvemen-upkeep"-flag to struct government.

> +      if (game.player_ptr->government != game.government_when_anarchy) {
> +     *total_cost += cost;
> +      }

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx


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