fix a wrong copy&paste in 86054bcf7e

This was SVN commit r16456.
This commit is contained in:
mimo 2015-03-22 21:51:57 +00:00
parent dec4552ffe
commit 64adec79da

View file

@ -262,7 +262,7 @@ for (var i = 0; i < numIslands; ++i)
for (var j = 0; j < landAreaLen; ++j)
{
var x = landAreas[j][0], z = landAreas[j][1];
if (playerConstraint.allows(x, z) && waterConstraint.allows(x, z))
if (playerConstraint.allows(x, z) && landConstraint.allows(x, z))
landAreas[n++] = landAreas[j];
}
landAreas.length = n;