aircraft_cmd.c
changeset 2364 5ac6c8d6e031
parent 2316 78c321d52817
child 2422 914a12dee832
equal deleted inserted replaced
2363:3f9849b5276c 2364:5ac6c8d6e031
   910 
   910 
   911 	// Get distance from destination pos to current pos.
   911 	// Get distance from destination pos to current pos.
   912 	dist = myabs(x + amd->x - v->x_pos) +  myabs(y + amd->y - v->y_pos);
   912 	dist = myabs(x + amd->x - v->x_pos) +  myabs(y + amd->y - v->y_pos);
   913 
   913 
   914 	// Need exact position?
   914 	// Need exact position?
   915 	if (!(amd->flag & AMED_EXACTPOS) && dist <= (amd->flag & AMED_SLOWTURN ? 8 : 4))
   915 	if (!(amd->flag & AMED_EXACTPOS) && dist <= (amd->flag & AMED_SLOWTURN ? 8U : 4U))
   916 		return true;
   916 		return true;
   917 
   917 
   918 	// At final pos?
   918 	// At final pos?
   919 	if (dist == 0) {
   919 	if (dist == 0) {
   920 
   920