1
0
forked from 0ad/0ad

Fix canyon rms when you for some reason want to start as the only player.

This was SVN commit r15441.
This commit is contained in:
wraitii 2014-06-24 19:12:44 +00:00
parent 3013b35c13
commit 06c1f9f972

View File

@ -321,17 +321,20 @@ for (var g = 0; g < scaleByMapSize(5,30); g++)
);
createArea(placer, [terrainPainter, elevationPainter, paintClass(clLand)], null);
var placer = new PathPlacer(tx, tz, mapSize*playerX[p2], mapSize*playerZ[p2], scaleByMapSize(11,17), 0.4, 3*(scaleByMapSize(1,4)), 0.1, 0.1);
var terrainPainter = new LayeredPainter(
[tMainTerrain, tMainTerrain], // terrains
[3] // widths
);
var elevationPainter = new SmoothElevationPainter(
ELEVATION_SET, // type
3, // elevation
3 // blend radius
);
createArea(placer, [terrainPainter, elevationPainter, paintClass(clLand)], null);
if (numPlayers > 1)
{
var placer = new PathPlacer(tx, tz, mapSize*playerX[p2], mapSize*playerZ[p2], scaleByMapSize(11,17), 0.4, 3*(scaleByMapSize(1,4)), 0.1, 0.1);
var terrainPainter = new LayeredPainter(
[tMainTerrain, tMainTerrain], // terrains
[3] // widths
);
var elevationPainter = new SmoothElevationPainter(
ELEVATION_SET, // type
3, // elevation
3 // blend radius
);
createArea(placer, [terrainPainter, elevationPainter, paintClass(clLand)], null);
}
}
}