检查障碍测试
This commit is contained in:
@@ -39,7 +39,10 @@ void ElementJudge()
|
||||
if (garage_type == GARAGE_NONE) {
|
||||
CheckCross();
|
||||
if (cross_type == CROSS_NONE) {
|
||||
CheckCircle();
|
||||
CheckBarrier();
|
||||
if (barrier_type == BARRIER_NONE){
|
||||
CheckCircle();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,7 +53,13 @@ void ElementJudge()
|
||||
if (cross_type != CROSS_NONE)
|
||||
{
|
||||
circle_type = CIRCLE_NONE;
|
||||
barrier_type = BARRIER_NONE;
|
||||
}
|
||||
if (barrier_type != BARRIER_NONE)
|
||||
{
|
||||
circle_type = CIRCLE_NONE;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user