Disable pathfinding when no geodata are loaded.
This commit is contained in:
@@ -107,12 +107,20 @@ public class GeoEngine
|
|||||||
|
|
||||||
_log.info("GeoEngine: Loaded " + loaded + " geodata files.");
|
_log.info("GeoEngine: Loaded " + loaded + " geodata files.");
|
||||||
|
|
||||||
// Avoid wrong config when no files loaded
|
// avoid wrong configs when no files are loaded
|
||||||
if ((loaded == 0) && (Config.COORD_SYNCHRONIZE == 2))
|
if (loaded == 0)
|
||||||
|
{
|
||||||
|
if (Config.PATHFINDING)
|
||||||
|
{
|
||||||
|
Config.PATHFINDING = false;
|
||||||
|
_log.info("GeoEngine: Forcing PathFinding setting to false.");
|
||||||
|
}
|
||||||
|
if (Config.COORD_SYNCHRONIZE == 2)
|
||||||
{
|
{
|
||||||
Config.COORD_SYNCHRONIZE = -1;
|
Config.COORD_SYNCHRONIZE = -1;
|
||||||
_log.info("GeoEngine: Forcing CoordSynchronize setting to -1.");
|
_log.info("GeoEngine: Forcing CoordSynchronize setting to -1.");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// release multilayer block temporarily buffer
|
// release multilayer block temporarily buffer
|
||||||
BlockMultilayer.release();
|
BlockMultilayer.release();
|
||||||
|
@@ -107,12 +107,20 @@ public class GeoEngine
|
|||||||
|
|
||||||
_log.info("GeoEngine: Loaded " + loaded + " geodata files.");
|
_log.info("GeoEngine: Loaded " + loaded + " geodata files.");
|
||||||
|
|
||||||
// Avoid wrong config when no files loaded
|
// avoid wrong configs when no files are loaded
|
||||||
if ((loaded == 0) && (Config.COORD_SYNCHRONIZE == 2))
|
if (loaded == 0)
|
||||||
|
{
|
||||||
|
if (Config.PATHFINDING)
|
||||||
|
{
|
||||||
|
Config.PATHFINDING = false;
|
||||||
|
_log.info("GeoEngine: Forcing PathFinding setting to false.");
|
||||||
|
}
|
||||||
|
if (Config.COORD_SYNCHRONIZE == 2)
|
||||||
{
|
{
|
||||||
Config.COORD_SYNCHRONIZE = -1;
|
Config.COORD_SYNCHRONIZE = -1;
|
||||||
_log.info("GeoEngine: Forcing CoordSynchronize setting to -1.");
|
_log.info("GeoEngine: Forcing CoordSynchronize setting to -1.");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// release multilayer block temporarily buffer
|
// release multilayer block temporarily buffer
|
||||||
BlockMultilayer.release();
|
BlockMultilayer.release();
|
||||||
|
@@ -107,12 +107,20 @@ public class GeoEngine
|
|||||||
|
|
||||||
_log.info("GeoEngine: Loaded " + loaded + " geodata files.");
|
_log.info("GeoEngine: Loaded " + loaded + " geodata files.");
|
||||||
|
|
||||||
// Avoid wrong config when no files loaded
|
// avoid wrong configs when no files are loaded
|
||||||
if ((loaded == 0) && (Config.COORD_SYNCHRONIZE == 2))
|
if (loaded == 0)
|
||||||
|
{
|
||||||
|
if (Config.PATHFINDING)
|
||||||
|
{
|
||||||
|
Config.PATHFINDING = false;
|
||||||
|
_log.info("GeoEngine: Forcing PathFinding setting to false.");
|
||||||
|
}
|
||||||
|
if (Config.COORD_SYNCHRONIZE == 2)
|
||||||
{
|
{
|
||||||
Config.COORD_SYNCHRONIZE = -1;
|
Config.COORD_SYNCHRONIZE = -1;
|
||||||
_log.info("GeoEngine: Forcing CoordSynchronize setting to -1.");
|
_log.info("GeoEngine: Forcing CoordSynchronize setting to -1.");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// release multilayer block temporarily buffer
|
// release multilayer block temporarily buffer
|
||||||
BlockMultilayer.release();
|
BlockMultilayer.release();
|
||||||
|
@@ -105,12 +105,20 @@ public class GeoEngine
|
|||||||
|
|
||||||
_log.info("GeoEngine: Loaded " + loaded + " geodata files.");
|
_log.info("GeoEngine: Loaded " + loaded + " geodata files.");
|
||||||
|
|
||||||
// Avoid wrong config when no files loaded
|
// avoid wrong configs when no files are loaded
|
||||||
if ((loaded == 0) && (Config.COORD_SYNCHRONIZE == 2))
|
if (loaded == 0)
|
||||||
|
{
|
||||||
|
if (Config.PATHFINDING)
|
||||||
|
{
|
||||||
|
Config.PATHFINDING = false;
|
||||||
|
_log.info("GeoEngine: Forcing PathFinding setting to false.");
|
||||||
|
}
|
||||||
|
if (Config.COORD_SYNCHRONIZE == 2)
|
||||||
{
|
{
|
||||||
Config.COORD_SYNCHRONIZE = -1;
|
Config.COORD_SYNCHRONIZE = -1;
|
||||||
_log.info("GeoEngine: Forcing CoordSynchronize setting to -1.");
|
_log.info("GeoEngine: Forcing CoordSynchronize setting to -1.");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// release multilayer block temporarily buffer
|
// release multilayer block temporarily buffer
|
||||||
BlockMultilayer.release();
|
BlockMultilayer.release();
|
||||||
|
@@ -107,12 +107,20 @@ public class GeoEngine
|
|||||||
|
|
||||||
_log.info("GeoEngine: Loaded " + loaded + " geodata files.");
|
_log.info("GeoEngine: Loaded " + loaded + " geodata files.");
|
||||||
|
|
||||||
// Avoid wrong config when no files loaded
|
// avoid wrong configs when no files are loaded
|
||||||
if ((loaded == 0) && (Config.COORD_SYNCHRONIZE == 2))
|
if (loaded == 0)
|
||||||
|
{
|
||||||
|
if (Config.PATHFINDING)
|
||||||
|
{
|
||||||
|
Config.PATHFINDING = false;
|
||||||
|
_log.info("GeoEngine: Forcing PathFinding setting to false.");
|
||||||
|
}
|
||||||
|
if (Config.COORD_SYNCHRONIZE == 2)
|
||||||
{
|
{
|
||||||
Config.COORD_SYNCHRONIZE = -1;
|
Config.COORD_SYNCHRONIZE = -1;
|
||||||
_log.info("GeoEngine: Forcing CoordSynchronize setting to -1.");
|
_log.info("GeoEngine: Forcing CoordSynchronize setting to -1.");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// release multilayer block temporarily buffer
|
// release multilayer block temporarily buffer
|
||||||
BlockMultilayer.release();
|
BlockMultilayer.release();
|
||||||
|
Reference in New Issue
Block a user