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

[Freeciv-Dev] Re: Tech cost patch v8

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Tech cost patch v8
From: Juha Litola <slave@xxxxxxxxxxxx>
Date: Fri, 30 Nov 2001 20:46:54 +0200

On Fri, Nov 30, 2001 at 07:40:29PM +0100, Raimar Falke wrote:
> On Fri, Nov 30, 2001 at 08:18:56PM +0200, Juha Litola wrote:
> > > Second:
> > > +      mul = 10 * (players - playerswithtech) / players;
> > > +      return mul * cost / 10;
> > > should be rewritten as
> > >        return ((players - playerswithtech)*cost)/players;
> > Yes, of course. Why didn't I notice that. Will you make the change
> > or shall I send the v10.
> You.
Here is v10:
- removed 10* from tech cost
- reformatted a bit
- tech_cost may drop to 0 if we have many players and cheap tech.
  In that case use cost 1 for tech.

--
// Juha Litola

Attachment: tech_cost_style10.diff.gz
Description: Binary data

Attachment: pgpLKItHoMfxe.pgp
Description: PGP signature


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