NetTestEditor lets us lock to a rectangle shape defined on the network.
This commit is contained in:
@ -1027,8 +1027,19 @@ namespace EduNetworkBuilder
|
||||
{
|
||||
if (nt.sHost == host)
|
||||
{
|
||||
if (WhatToCheck == nt.TheTest && (dest == "" || dest == nt.dHost))
|
||||
return true;
|
||||
if (WhatToCheck == nt.TheTest)
|
||||
{
|
||||
if(nt.TheTest == NetTestType.LockLocation)
|
||||
{
|
||||
if(dest == "" && (nt.dHost == "" || nt.dHost == "--")) //It cannot be moved at all
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
else if (dest == "" || dest == nt.dHost)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user