Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2001:
[Freeciv-Dev] Re: (NEW PATCH) settler_worker_cost patch

[Freeciv-Dev] Re: (NEW PATCH) settler_worker_cost patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Arien Malec" <arien_malec@xxxxxxxxx>, <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: (NEW PATCH) settler_worker_cost patch
From: "Michael Kiermaier" <michael.kiermaier@xxxxxxx>
Date: Thu, 8 Mar 2001 14:01:12 +0100

Arien Malec wrote:

> --- Michael Kiermaier <michael.kiermaier@xxxxxxx> wrote:
> My latest patch (attached), which sounds very similar to yours, changes
> the function to be city_reduce_size (I then had to change a function
> already named city_reduce_size to read city_reduced_by_famine which is
> what is really going on). It makes worker_cost an attribute on units
> (units.ruleset) which is the right place for it, I think.
> Now we just need to merge our two approaches :-)

i will merge them and make a patch of the result (finished in a few hours i
please notice that i will rename all the worker-stuff into pop, because in
fact the population number (which consists of workers and specialists) is
reduced and not necessarily the worker number.
if you do not agree, we can discuss it and eventually change it to something

> > at the moment i have a problem:
> > i changed the can_unit_add_to_city function according to my new
> > F_ADD_TO_CITY flag. when i click on the menu item "add to city" or
> > "build
> > city" everything works fine.
> > but pressing the "b" key only adds F_CITIES (or F_SETTLERS?) units to
> > a city
> > and not all units with the F_ADD_TO_CITY flag.
> >
> > can anyone imagine a reason for this behavior? where can i find the
> > code
> > that handles keyboard inputs?
> You want to change can_unit_add_to_city in unit.c

i did change this function, and adding to a city basically works. but not
for F_ADD_TO_CITY-only units together with pressing the keyboard-"b".


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