Do not perform sine of sight check when cannot move.
This commit is contained in:
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -645,7 +645,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -645,7 +645,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -645,7 +645,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -645,7 +645,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -646,7 +646,7 @@ public class GeoEngine
|
|||||||
int z = block.getHeight(index);
|
int z = block.getHeight(index);
|
||||||
|
|
||||||
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
// Perform sine of sight check (next cell is above line of sight line), return fail.
|
||||||
if (z > losz)
|
if (!canMove && (z > losz))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user