[Freeciv-Dev] Re: [PATCH]refactor server/cityturn.c:city_build_stuff (PR
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Tue, Aug 28, 2001 at 02:43:45PM -0700, Arien Malec wrote:
> server/cityturn.c:city_build_stuff appears to be long and complicated, but
> actually has a very simple structure. The attached patch refactors
> city_build_stuff to uncover that structure, by splitting the main work into
> three sub functions.
>
> This moves some ugliness off to city_build_unit and city_build_building
> functions are open for refactoring as well, but this patch cleans things up
> considerably, IMHO.
So you have only split these methods up? Any extra changes? It is hard
to tell from the diff.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"I haven't lost my mind - it's backed up on tape somewhere."
|
|