Skip to content

Commit

Permalink
6c-Entropy: Fix max tile height
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Jun 25, 2024
1 parent b2865de commit 7a74975
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/mp/multiplay/maps/6c-Entropy/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function genRegions(fields) {
var regions = [];
for (var i = 0; i < fields.count; ++i) {
var textureType = textureTypes[gameRand(textureTypes.length)];
var height = textureType.isWater? 0 : gameRand(500) + 12;
var height = textureType.isWater? 0 : gameRand(499) + 12;
regions.push({texture: textureType, height: height, avg: fields.avg[i], reachable: false});
}

Expand Down Expand Up @@ -522,7 +522,7 @@ function placeStuff(regions, startPos) {
features.push({name: sample(snow? snowFeatureTypes : featureTypes), position: pos, direction: gameRand(0x10000)});
}
}

// Add additional oils
for(var i=0;i<60*(richness-3);i++){
var oilPos = placeNear(gameRand(mapWidth), gameRand(mapHeight), 1, 1, true, 20);
Expand Down

0 comments on commit 7a74975

Please sign in to comment.