yy1717
2020-05-15 529ab6f8a6b422b5299fab9c0ce2f30fe99c7be8
lib/src/main/cpp/test_items2/road_exam.cpp
@@ -75,6 +75,7 @@
static int startCar;
static int currExamMapIndex;
static int nextRoadId;
static bool checkDoor = false;
static bool handBreakActive = false;
@@ -524,6 +525,9 @@
        if (IntersectionOf(&carBody, &area) == GM_None) {
            DEBUG("离开路段 id = %d", RoadMap.roads[currExamMapIndex].id);
            RoadMap.roads[currExamMapIndex].arrivedTail = false;
            currExamMapIndex = FIND_POSITION;
        }
@@ -713,6 +717,13 @@
                laneChanging = false;
            }
        }
        ArrivedRoadEnd(RoadMap.roads[currExamMapIndex], car, CarModelList);
        if (CrashTheLine(RoadMap.roads[currExamMapIndex].stopLine, car, CarModelList)) {
            DEBUG("下一个目标路 id = %d", RoadMap.roads[currExamMapIndex].targetRoad);
            nextRoadId = RoadMap.roads[currExamMapIndex].targetRoad;
        }
    }
    // 撞红线