[Freeciv-Dev] warmap patch and gotohand
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Hello,
I looked quickly at Thue gotohand patch. It's a good thing to have
clearer gotohand functions.c . I didn't check if It reproduces the same
behaviour as the old one. As has said Thue, it takes time to understand
gotohand code. I tried also to improve it. Modifications are
- the field seacost is withdrawn. It wasn't used anywhere as a seacost
field. There was always a test before to check if the unit was a land or
sea unit.
- the local_vector is no more set to zero. It can be wrong. But, It
looks like it is always set before being used.
An old warmap can be reused. If the minimum distance between the two
units which are using a warmap is d, only add d to the old warmap.
Part of the warmap will have the correct cost. (Once you have reached the
old position) I don't know if it can be done efficiently. I don't think AI
manage airlift.
In ai/aiunit.c : int find_something_to_kill
A test is added so that AI only try to conquer ennemy cities.
Nicolas
warmap.diff
Description: warmap.diff
- [Freeciv-Dev] warmap patch and gotohand,
Nicolas BRUNEL <=
- [Freeciv-Dev] Re: warmap patch and gotohand, Thue Janus Kristensen, 2000/05/04
- [Freeciv-Dev] Re: warmap patch and gotohand, Nicolas BRUNEL, 2000/05/04
- [Freeciv-Dev] Re: warmap patch and gotohand, Thue Janus Kristensen, 2000/05/04
- [Freeciv-Dev] Re: warmap patch and gotohand, Nicolas BRUNEL, 2000/05/04
- [Freeciv-Dev] Re: warmap patch and gotohand, Thue Janus Kristensen, 2000/05/05
- [Freeciv-Dev] Re: warmap patch and gotohand, Nicolas BRUNEL, 2000/05/05
- [Freeciv-Dev] Re: warmap patch and gotohand, Thue Janus Kristensen, 2000/05/05
|
|