Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2001:
[Freeciv-Dev] Re: PATCH: New version of production fix. (PR#694)
Home

[Freeciv-Dev] Re: PATCH: New version of production fix. (PR#694)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Joona Kiiski <zamar@xxxxxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: PATCH: New version of production fix. (PR#694)
From: Thue <thue@xxxxxxx>
Date: Wed, 14 Feb 2001 22:11:21 +0100

On Friday 09 February 2001 11:57, Joona Kiiski wrote:
> Fixes the production problems mentioned in my earlier message +
> Fixes the bugs Thue mentioned in my patch
>
> Changes:
> - Fixed prototype for nullify_caravan_and_disband_plus()
> (What a silly mistake :)
>
> -AI now uses server's disband functions.
> Those functions modified a bit.
>
> -Added new function nullify_prechange_production, which calls
> nullify_caravan_and_disband_plus (static). Cosmetic change.
> Should make things a bit less complicated.
>
> -Added enum for unit/wonder/building stuff.
>
> --
> Zamar

1) Why this change?

@@ -1321,7 +1327,8 @@
        pcity->name,get_impr_name_ex(pcity, pcity->currently_building));
       return 1;
     }
-    if (pcity->shield_stock>=improvement_value(pcity->currently_building)) {
+    if (pcity->before_change_shields>=
+                   improvement_value(pcity->currently_building)) {
       if (pcity->currently_building==B_PALACE) {
        city_list_iterate(pplayer->cities, palace) 
          if (city_got_building(palace, B_PALACE)) {

2) And the last changed year is buggy; after people start building spaceships 
the year interval change, and so you cannot determine if the year in the 
last_changed paragraph was the year just before this one. I think you only 
need to know if the production was changed this turn, ie a boolean.

3) it seems to me that most of the production ETA times in the client are "1 
turn" (try clicking on the city itself in the city window to refresh it.)

-Thue



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