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