Do not perform sine of sight check when cannot move.

This commit is contained in:
MobiusDevelopment
2021-12-15 01:54:35 +00:00
parent 93824ac4a3
commit 329374cd60
25 changed files with 25 additions and 25 deletions

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }