16 lines
447 B
C
16 lines
447 B
C
|
|
#include "zf_common_headfile.h"
|
||
|
|
#include "gl_headfile.h"
|
||
|
|
|
||
|
|
enum barrier_type_e barrier_type = BARRIER_NONE;
|
||
|
|
|
||
|
|
|
||
|
|
void CheckBarrier() {
|
||
|
|
if (barrier_type == BARRIER_NONE && Lpt0_found_barrier_in && !Lpt1_found_barrier_in && is_straight1) {
|
||
|
|
barrier_type = BARRIER_LEFT_BEGIN;
|
||
|
|
}
|
||
|
|
if (barrier_type == BARRIER_NONE && !Lpt0_found_barrier_in && Lpt1_found_barrier_in && is_straight0) {
|
||
|
|
barrier_type = BARRIER_RIGHT_BEGIN;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|