Complete.Org: Mailing Lists: Archives: freeciv-ai: August 2004:
[freeciv-ai] Re: Inprovements in settler.c
Home

[freeciv-ai] Re: Inprovements in settler.c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: Inprovements in settler.c
From: Per Inge Mathisen <per@xxxxxxxxxxx>
Date: Sun, 29 Aug 2004 20:22:15 +0000 (GMT)

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



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