1
0
forked from 0ad/0ad

Change some scenario water settings. Refs #1711.

This was SVN commit r12825.
This commit is contained in:
wraitii 2012-11-05 17:31:28 +00:00
parent 9ebdeff90e
commit c1da925786
20 changed files with 39 additions and 39 deletions

View File

@ -222,7 +222,7 @@ for (var x = 0; x < mapSize; x++)
for (var z = 0;z < mapSize;z++)
{
// Some variables
var radius = Math.pow(Math.pow(mapCenterX - x, 2) + Math.pow(mapCenterZ - z, 2), 1/2);
var radius = Math.pow(Math.pow(mapCenterX - x - 0.5, 2) + Math.pow(mapCenterZ - z - 0.5, 2), 1/2); // The 0.5 is a correction for the entities placed on the center of tiles
var minDistToSL = mapSize;
for (var i=0; i < numPlayers; i++)
minDistToSL = min(minDistToSL, getDistance(playerStartLocX[i], playerStartLocZ[i], x, z))

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.