extern signed int targetx, targety;
extern signed int gxs, gys;
extern signed int grange;

int UpdateBase (void);
//signed int dx, dy;
int SecondaryFlag = 0;

// walk structure
struct WalkInfo{
	signed int Current_X;
	signed int Current_Y;
	signed int Target_X;
	signed int Target_Y;
	signed int Base_X_Dir;
	signed int Base_Y_Dir;
	signed int Cur_X_Dir;
	signed int Cur_Y_Dir;
	signed int BaseSine;
	signed int BaseCosine;
}WI;

int method = -1;
signed int fx, fy, dx, dy;
int range, trange;

extern int CheckMove (int x, int y, int z);
int GenX, GenY;

