Project

General

Profile

Bug #590 » 0002-Check-whether-border-should-be-cleared-when-reclaimi.patch

main (without #588), S3_2, S3_1 - Alina Lenk, 05/12/2024 12:57 AM

View differences:

server/maphand.c
}
claimer = tile_claimer(ptile);
if (claimer != NULL && is_ocean_tile(ptile)) {
if (!is_claimable_ocean(ptile, claimer, tile_owner(ptile))) {
map_clear_border(ptile);
if (claimer != NULL) {
/* Make sure map_claim_border() conditions are still satisfied */
if (is_ocean_tile(ptile)) {
/* Only certain water tiles are claimable */
if (!is_claimable_ocean(ptile, claimer, tile_owner(ptile))) {
map_clear_border(ptile);
}
} else {
/* Only land tiles on the same island as the border source
* are claimable */
if (tile_continent(ptile) != tile_continent(claimer)) {
map_clear_border(ptile);
}
}
}
(2-2/2)