[Freeciv-Dev] Tech cost patch v3
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Wed, Nov 28, 2001 at 03:05:29PM +0100, Petr Baudis wrote:
> It doesn't look bad, only the coding style needs to be fined a bit, IMHO.
It would help to know what it currently is ;)
Included is modified patch with following chages:
- Converted c++-style comments to c-style
- Add capability tech_cost
- Added cost field to advance-structure
- Calculate costs only once
- Converted if in tech_cost to switch
- Got rid of floats
- Changed for (i = 0; i < players; ++i) to player_iterate
> Shouldn't you also modify ai/advmilitary.c ? >:)
I hope not, I haven't got faintest idea what happens there. Someone
more familiar with ai should probably check if modifications are
needed.
--
// Juha Litola
tech_cost_style3.diff
Description: Text document
pgpjCguSkT8fT.pgp
Description: PGP signature
- [Freeciv-Dev] Tech cost patch, Juha Litola, 2001/11/28
- [Freeciv-Dev] Re: Tech cost patch, Juha Litola, 2001/11/28
- [Freeciv-Dev] Re: Tech cost patch, Juha Litola, 2001/11/28
- [Freeciv-Dev] Re: Tech cost patch, Raimar Falke, 2001/11/28
- [Freeciv-Dev] Re: Tech cost patch, Petr Baudis, 2001/11/28
- [Freeciv-Dev] Tech cost patch v3,
Juha Litola <=
- [Freeciv-Dev] Re: Tech cost patch v3, Petr Baudis, 2001/11/28
- [Freeciv-Dev] Tech cost patch v4, Juha Litola, 2001/11/28
- [Freeciv-Dev] Re: Tech cost patch v4, Paul Zastoupil, 2001/11/28
- [Freeciv-Dev] Re: Tech cost patch v4, Juha Litola, 2001/11/28
- [Freeciv-Dev] Re: Tech cost patch v3, Raimar Falke, 2001/11/28
- [Freeciv-Dev] Why not C++ style comments?, Raahul Kumar, 2001/11/29
- [Freeciv-Dev] Re: Why not C++ style comments?, Raimar Falke, 2001/11/29
- [Freeciv-Dev] C/C++ Compilers used with Freeciv, Raahul Kumar, 2001/11/29
- [Freeciv-Dev] Re: Why not C++ style comments?, Reinier Post, 2001/11/29
- [Freeciv-Dev] Re: Why not C++ style comments?, Reinier Post, 2001/11/29
|
|