Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2001:
[Freeciv-Dev] Re: Tech cost patch v7
Home

[Freeciv-Dev] Re: Tech cost patch v7

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Juha Litola <slave@xxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Tech cost patch v7
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 30 Nov 2001 12:13:36 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Fri, Nov 30, 2001 at 10:19:26AM +0200, Juha Litola wrote:
> 7th and hopefully final version of tech cost patch.
> 
> Changes to v6:
> - corrected algorithm for num_req_techs
> - num_reqs are now initialized to 0
> - num_reqs are now precalculated at server/ruleset.c
> - num_reqs are now transferred to client in tech packet

num_req_techs() can be removed. The code should go into
precalc_tech_data. IMHO
+  if(counted[tech])
+    return 0;
should be
+  if(counted[tech])
+    return advances[tech].num_reqs

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Programming today is a race between software engineers striving to
  build bigger and better idiot-proof programs, and the Universe trying
  to produce bigger and better idiots. So far, the Universe is winning."
    -- Rich Cook


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