bool CheckBuildSite(const Coord_cl& pos, int sx, int sy) { signed int checkz;  int checkx; int checky; int ycount=0; checkx=pos.x-abs(sx/2); for (;checkx<(pos.x+abs(sx/2));checkx++) { checky=pos.y-(sy/2); for (;checky<(pos.y+(sy/2));checky++) { checkz=Map->MapElevation( Coord_cl( checkx,checky, pos.z, pos.map)); if ((checkz<(pos.z-7)) || (checkz>(pos.z+7))) {
bool CheckBuildSite (Coord_cl pos, int sx, int sy, P_CHAR pc_s) {      if ((sx>200) || (sy>200)) { return false; } unsigned short x, y, x0, y0, x1, y1; signed char z, z0; char pcBlocked = pc_s->blocked; x0 = pos.x - abs (sx/2); x1 = pos.x + abs (sx/2); y0 = pos.y - abs (sy/2); y1 = pos.y + abs (sy/2); z0 = pos.z; for (x=x0; x<=x1; x++) { for (y=y0; y<=y1; y++) { z = Map->MapElevation (Coord_cl (x, y, pos.z, pos.map)); if (abs (z-z0) > 7) {
bool CheckBuildSite(const Coord_cl& pos, int sx, int sy){	signed int checkz;	//char statc;	int checkx;	int checky;	int ycount=0;	checkx=pos.x-abs(sx/2);	for (;checkx<(pos.x+abs(sx/2));checkx++)	{		checky=pos.y-(sy/2);		for (;checky<(pos.y+(sy/2));checky++)		{			checkz=Map->MapElevation( Coord_cl( checkx,checky, pos.z, pos.map));			if ((checkz<(pos.z-7)) || (checkz>(pos.z+7)))			{				return false;			}		}	}	return true;}