From 3dc664ff3e04dbc81f61281e01799674adfe0612 Mon Sep 17 00:00:00 2001 From: Dino Date: Mon, 31 Mar 2025 21:36:18 -0400 Subject: [PATCH] Bug #1278 fix in can_reclaim_ocean() --- common/map.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/map.c b/common/map.c index b0e3c83e69..30e30b5bca 100644 --- a/common/map.c +++ b/common/map.c @@ -682,9 +682,8 @@ bool is_safe_ocean(const struct civ_map *nmap, const struct tile *ptile) bool can_reclaim_ocean(const struct civ_map *nmap, const struct tile *ptile) { - int land_tiles = 100 - count_terrain_class_near_tile(nmap, ptile, - FALSE, TRUE, - TC_OCEAN); + int land_tiles = count_terrain_class_near_tile(nmap, ptile, + FALSE, TRUE, TC_LAND); return land_tiles >= terrain_control.ocean_reclaim_requirement_pct; } -- 2.31.0