diff --git a/binaries/data/mods/public/maps/random/islands.js b/binaries/data/mods/public/maps/random/islands.js index a840254eb8..70ebfe512b 100644 --- a/binaries/data/mods/public/maps/random/islands.js +++ b/binaries/data/mods/public/maps/random/islands.js @@ -259,13 +259,13 @@ for (var i = 0; i < numIslands; ++i) if (newIsland && newIsland.length) { var n = 0; - for (var j = 0; j < lakeAreaLen; ++j) + for (var j = 0; j < landAreaLen; ++j) { - var x = lakeAreas[j][0], z = lakeAreas[j][1]; + var x = landAreas[j][0], z = landAreas[j][1]; if (playerConstraint.allows(x, z) && waterConstraint.allows(x, z)) - lakeAreas[n++] = lakeAreas[j]; + landAreas[n++] = landAreas[j]; } - lakeAreas.length = n; + landAreas.length = n; } } diff --git a/binaries/data/mods/public/simulation/ai/petra/chatHelper.js b/binaries/data/mods/public/simulation/ai/petra/chatHelper.js index 6adc9dccba..04d42e4e43 100644 --- a/binaries/data/mods/public/simulation/ai/petra/chatHelper.js +++ b/binaries/data/mods/public/simulation/ai/petra/chatHelper.js @@ -31,7 +31,7 @@ m.chatRequestTribute = function(gameState, resource) { var proba = Math.random(); if (proba < 0.5) - var message = "/team " + markForTranslation("I am in need of %(resource)s, can you help ? I will make it up to you."); + var message = "/team " + markForTranslation("I am in need of %(resource)s, can you help? I will make it up to you."); else var message = "/team " + markForTranslation("I would particate more efficiently in our common war effort if you could provide me some %(resource)s");