version 1.24.12.1, 2014/08/20 00:00:21 |
version 1.25, 2014/03/22 22:24:21 |
|
|
static STACK stack[MAXDEPTH]; |
static STACK stack[MAXDEPTH]; |
static int level; |
static int level; |
static int tval; |
static int tval; |
static int dir; |
static int dest_type, dest_no, dir; |
static enum places dest_type; |
|
static unsigned dest_no; |
|
|
|
static int |
static int |
pop(void) |
pop(void) |
|
|
if (pp == NULL) |
if (pp == NULL) |
return ("Unknown Plane"); |
return ("Unknown Plane"); |
(void)memcpy(&p, pp, sizeof (p)); |
(void)memcpy(&p, pp, sizeof (p)); |
p.delayd = false; |
p.delayd = 0; |
return (NULL); |
return (NULL); |
} |
} |
|
|
|
|
ydiff = SGN(ydiff); |
ydiff = SGN(ydiff); |
if (xdiff != displacement[p.dir].dx || ydiff != displacement[p.dir].dy) |
if (xdiff != displacement[p.dir].dx || ydiff != displacement[p.dir].dy) |
return ("Beacon is not in flight path"); |
return ("Beacon is not in flight path"); |
p.delayd = true; |
p.delayd = 1; |
p.delayd_no = bn; |
p.delayd_no = bn; |
|
|
if (dest_type != T_NODEST) { |
if (dest_type != T_NODEST) { |