mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 10:09:16 +00:00
Create the path StaticConstraint once for all city districts in Jebel Barkal
This commit is contained in:
1 parent
b3bb4a62ad
commit
97bbe8b49f
1 file changed
+2
-1
@@ -910,6 +910,7 @@ export function* generateMap(mapSettings)
|
||||
[areaPaths]);
|
||||
|
||||
g_Map.log("Placing city districts");
|
||||
const avoidPaths = new StaticConstraint(avoidClasses(clPath, 0));
|
||||
for (let y = 1; y < gridPointsY; ++y)
|
||||
for (let x = 1; x < gridPointsX; ++x)
|
||||
createArea(
|
||||
@@ -926,7 +927,7 @@ export function* generateMap(mapSettings)
|
||||
(-cityGridAngle[y][x - 1] - cityGridAngle[y][x]) / 2, 0),
|
||||
new TileClassPainter(clCity)
|
||||
],
|
||||
new StaticConstraint(avoidClasses(clPath, 0)));
|
||||
avoidPaths);
|
||||
|
||||
let entitiesGates;
|
||||
if (placeNapataWall)
|
||||
|
||||
Reference in new issue
Block a user