[freeciv-ai] Re: correctly evaluate ocean dangers
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On 2004-08-16 18:46:09, Per Inge Mathisen wrote:
Not really tested yet. Comments?
- Per
* seaborne units, we don't have to worry. Go on the
offensive! */
- if (can_build_antisea && unit_type(punit)->attack_strength >
1) {
- ai->threats.sea = TRUE;
+ if (unit_type(punit)->attack_strength > 1) {
+ Continent_id continent = map_get_continent(punit->x,
punit->y);
+ ai->threats.ocean[continent] = TRUE;
}
+ continue;
should be: ai->threats.ocean[-continent] = TRUE;
}
&& !map_is_known(x, y, pplayer)) {
/* We're not done there. */
ai->explore.sea_done = FALSE;
+ ai->explore.ocean[continent] = TRUE;
}
/* skip rest, which is land only */
continue;
The same
--
mateusz
----------------------------------------------------------------------
Portal INTERIA.PL zaprasza... >>> http://link.interia.pl/f17cb
|