1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00
This commit is contained in:
noctilucentgames 2020-10-27 16:02:28 +00:00
parent c7c981c257
commit 7df81b218c

View File

@ -238,10 +238,9 @@ export class MapChunk {
}
} else {
// Turn subshape at 2 random positions into a random type that is not windmill
let quad1 = rng.nextIntRange(0,4);
let quad2 = rng.nextIntRange(0,3);
if (quad2 >= quad1)
{
let quad1 = rng.nextIntRange(0, 4);
let quad2 = rng.nextIntRange(0, 3);
if (quad2 >= quad1) {
++quad2;
}
subShapes[quad1] = this.internalGenerateRandomSubShape(rng, weights);