last ...
This commit is contained in:
@@ -225,8 +225,11 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
if (hasWaitingBoxes)
|
||||
{
|
||||
//
|
||||
workingZone
|
||||
.ValidateWaitingBoxes(zIndex);
|
||||
// Validate Working Zone Waiting Boxes ...
|
||||
workingZone.ValidateWaitingBoxes(zIndex);
|
||||
|
||||
//
|
||||
// Double Check Has Waiting Boxes or not ...
|
||||
hasWaitingBoxes = workingZone.HasWaitingBoxes();
|
||||
}
|
||||
|
||||
@@ -260,10 +263,7 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
}
|
||||
|
||||
//
|
||||
// Start Draw ...
|
||||
//
|
||||
|
||||
//
|
||||
// Update Models To Time ...
|
||||
UpdateTo(cTime);
|
||||
|
||||
//
|
||||
@@ -281,10 +281,6 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// End Draw ...
|
||||
//
|
||||
|
||||
//
|
||||
// Detect Signal Box ...
|
||||
hasSignalBox =
|
||||
@@ -304,21 +300,21 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
//
|
||||
// Remove Signal Box from UnAvailable Box ...
|
||||
// if Exists ...
|
||||
bool hasUnAvailableBoxes = workingZone
|
||||
.HasUnavailableBoxes();
|
||||
if (hasUnAvailableBoxes)
|
||||
bool hasBreakedBoxes = workingZone
|
||||
.HasBreakedBoxes();
|
||||
if (hasBreakedBoxes)
|
||||
{
|
||||
//
|
||||
int idx = FindIndex(
|
||||
signalBox,
|
||||
workingZone.unavailableBoxes //
|
||||
workingZone.breakedBoxes //
|
||||
);
|
||||
bool has = IsValidIndex(idx);
|
||||
if (has)
|
||||
{
|
||||
//
|
||||
ArrayRemove(
|
||||
workingZone.unavailableBoxes,
|
||||
workingZone.breakedBoxes,
|
||||
idx,
|
||||
1 //
|
||||
);
|
||||
@@ -352,20 +348,6 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
//
|
||||
//
|
||||
|
||||
//
|
||||
// Remove InValidate Boxes ...
|
||||
if (hasWaitingBoxes)
|
||||
{
|
||||
//
|
||||
// Validate Waiting Boxes ...
|
||||
workingZone.ValidateWaitingBoxes(zIndex);
|
||||
hasWaitingBoxes = workingZone.HasWaitingBoxes();
|
||||
}
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
//
|
||||
// Cleanup Signal if UnApproved ...
|
||||
if (!hasSignalBox)
|
||||
|
||||
Reference in New Issue
Block a user