[freeciv-ai] Re: Inprovements in settler.c
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Sat, 28 Aug 2004, Jordi Negrevernis i Font wrote:
> There are two patches there:
>
> settler -> introduces the bodyguard code for the settling activities.
There are a few style mistakes:
+{ bool pos_dangerous = 0;
+#define LOG_SETTLER LOG_NORMAL
+ pos_dangerous = enemies_at(punit, goto_dest_x(punit), goto_dest_y(punit))
||
+ (map_get_owner(goto_dest_x(punit), goto_dest_y(punit)) !=
pplayer);
+ UNIT_LOG(LOG_SETTLER, punit, "could not go to build target city or
en route");
Remember max line width! :)
Also, the patch no longer applies... I have a nice savegame to test it
with now, so if you update the patch, I will test it now.
- Per
|
|