int overfly[MAXNOC];
int flags;
struct emp_qelem ilist[MAXNOC];
- char mypath[1024];
- int myp;
int civ, mil;
natid plane_owner;
struct sctstr sect;
plp = (struct plist *)bomb_list->q_forw;
plane_owner = plp->plane.pln_own;
- strncpy(mypath, path, sizeof(mypath));
- myp = 0;
-
memset(overfly, 0, sizeof(overfly));
memset(gotilist, 0, sizeof(gotilist));
memset(unfriendly, 0, sizeof(unfriendly));
}
}
- while ((dir = mypath[myp++]) && !QEMPTY(bomb_list)) {
+ while ((dir = *path++) && !QEMPTY(bomb_list)) {
if ((val = diridx(dir)) == DIR_STOP)
break;
/* XXX using xnorm is probably bad */