From 79c0a48ce32c6a22ca112af901c7ce0d426f7c53 Mon Sep 17 00:00:00 2001 From: Fabio Pedretti Date: Sat, 10 Oct 2026 19:37:49 +0200 Subject: [PATCH] Remove unused areaLand and areaWater areas areaLand and areaWater were created with a MapBoundsPlacer, which evaluates the tileclass constraint on every tile of the map. However, createArea only has an effect if either a painter is specified or the returned Area is used. Here no painter was passed and the returned values were never read, so these calls did nothing except waste time. --- .../public/maps/random/rmgen-common/gaia_entities.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/binaries/data/mods/public/maps/random/rmgen-common/gaia_entities.js b/binaries/data/mods/public/maps/random/rmgen-common/gaia_entities.js index a5846c9ed2..bd2f5869a8 100644 --- a/binaries/data/mods/public/maps/random/rmgen-common/gaia_entities.js +++ b/binaries/data/mods/public/maps/random/rmgen-common/gaia_entities.js @@ -294,18 +294,6 @@ function placeDocks(template, playerID, count, tileClassWater, tileClassDock, he undefined, stayClasses(tileClassWater, 20)); - g_Map.log("Marking land area"); - const areaLand = createArea( - new MapBoundsPlacer(), - undefined, - avoidClasses(tileClassWater, 0)); - - g_Map.log("Marking water area"); - const areaWater = createArea( - new MapBoundsPlacer(), - undefined, - stayClasses(tileClassWater, 0)); - if (!areaSearchEnd || !areaSearchEnd.getPoints().length) return;