1
0
forked from 0ad/0ad

Fix typos

This was SVN commit r10420.
This commit is contained in:
Ykkrosh 2011-10-23 12:26:47 +00:00
parent bd73308d49
commit 83955072b6
2 changed files with 3 additions and 3 deletions

View File

@ -533,8 +533,8 @@ GuiInterface.prototype.GetFoundationSnapData = function(player, data)
/* Find direction of most open water, algorithm: /* Find direction of most open water, algorithm:
* 1. Pick points in a circle around dock * 1. Pick points in a circle around dock
* 2. If point is in water, add to array * 2. If point is in water, add to array
* 3. Scan array looking for consective points * 3. Scan array looking for consecutive points
* 4. Find longest sequence of conseuctive points * 4. Find longest sequence of consecutive points
* 5. If sequence equals all points, no direction can be determined, * 5. If sequence equals all points, no direction can be determined,
* expand search outward and try (1) again * expand search outward and try (1) again
* 6. Calculate angle using average of sequence * 6. Calculate angle using average of sequence

View File

@ -147,7 +147,7 @@ function ProcessCommand(player, cmd)
cmpPosition.JumpTo(cmd.x, cmd.z); cmpPosition.JumpTo(cmd.x, cmd.z);
cmpPosition.SetYRotation(cmd.angle); cmpPosition.SetYRotation(cmd.angle);
// TODO: Build restrctions disabled for AI since it lacks a mechanism for checking most of them // TODO: Build restrictions disabled for AI since it lacks a mechanism for checking most of them
if (!cmpPlayer.IsAI()) if (!cmpPlayer.IsAI())
{ {
// Check whether it's obstructed by other entities or invalid terrain // Check whether it's obstructed by other entities or invalid terrain