HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...
Bug #874452 » 0028-AI-Fix-illegal-read-on-EFT_DEFEND_BONUS-evaluation-w.patch
ai/default/daieffects.c | ||
---|---|---|
484 | 484 |
if (capital || affects_land_capable_units) { |
485 | 485 |
Continent_id place = tile_continent(pcity->tile); |
486 | 486 | |
487 |
if ((place && adv->threats.continent[place]) |
|
487 |
if ((place > 0 && adv->threats.continent[place])
|
|
488 | 488 |
|| capital |
489 | 489 |
|| (adv->threats.invasions |
490 | 490 |
/* FIXME: This ignores riverboats on some rulesets. |
491 | 491 |
We should analyze rulesets when game starts |
492 | 492 |
and have relevant checks here. */ |
493 | 493 |
&& is_terrain_class_near_tile(pcity->tile, TC_OCEAN))) { |
494 |
if (place && adv->threats.continent[place]) { |
|
494 |
if (place > 0 && adv->threats.continent[place]) {
|
|
495 | 495 |
v += amount * 4 / 5; |
496 | 496 |
} else { |
497 | 497 |
v += amount / (!adv->threats.igwall ? (18 - capital * 6) : 18); |
498 |
- |