From b855613fcf0545c6df96d03b3079f66967708a5b Mon Sep 17 00:00:00 2001 From: noctilucentgames Date: Mon, 26 Oct 2020 16:48:47 +0000 Subject: [PATCH] fix windmill shape generation Signed-off-by: noctilucentgames --- src/js/game/map_chunk.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/game/map_chunk.js b/src/js/game/map_chunk.js index 54af1125..50f324cb 100644 --- a/src/js/game/map_chunk.js +++ b/src/js/game/map_chunk.js @@ -224,9 +224,9 @@ export class MapChunk { ++windmillCount; } } - if (windmillCount > 1) { - subShapes[0] = enumSubShape.rect; - subShapes[1] = enumSubShape.rect; + if (windmillCount > 2) { + this.internalGenerateShapePatch(rng, shapePatchSize, distanceToOriginInChunks); + return; } const definition = this.root.shapeDefinitionMgr.getDefinitionFromSimpleShapes(subShapes);