检查障碍测试

This commit is contained in:
Glz
2024-03-23 09:43:06 +08:00
parent 200d67b8bd
commit 77966b874f
5 changed files with 46 additions and 1 deletions

View File

@@ -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;
}
}