Fix typos
This was SVN commit r10420.
This commit is contained in:
parent
bd73308d49
commit
83955072b6
@ -533,8 +533,8 @@ GuiInterface.prototype.GetFoundationSnapData = function(player, data)
|
||||
/* Find direction of most open water, algorithm:
|
||||
* 1. Pick points in a circle around dock
|
||||
* 2. If point is in water, add to array
|
||||
* 3. Scan array looking for consective points
|
||||
* 4. Find longest sequence of conseuctive points
|
||||
* 3. Scan array looking for consecutive points
|
||||
* 4. Find longest sequence of consecutive points
|
||||
* 5. If sequence equals all points, no direction can be determined,
|
||||
* expand search outward and try (1) again
|
||||
* 6. Calculate angle using average of sequence
|
||||
|
@ -147,7 +147,7 @@ function ProcessCommand(player, cmd)
|
||||
cmpPosition.JumpTo(cmd.x, cmd.z);
|
||||
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())
|
||||
{
|
||||
// Check whether it's obstructed by other entities or invalid terrain
|
||||
|
Loading…
Reference in New Issue
Block a user