src/aircraft_cmd.cpp
changeset 7900 534a7cc99597
parent 7815 b821a6aafd09
child 7922 a7e266f966d9
equal deleted inserted replaced
7899:ff8ddda625b5 7900:534a7cc99597
  1152 
  1152 
  1153 	do {
  1153 	do {
  1154 
  1154 
  1155 		GetNewVehiclePosResult gp;
  1155 		GetNewVehiclePosResult gp;
  1156 
  1156 
  1157 		if (dist < 4) {
  1157 		if (dist < 4 || amd->flag & AMED_LAND) {
  1158 			/* move vehicle one pixel towards target */
  1158 			/* move vehicle one pixel towards target */
  1159 			gp.x = (v->x_pos != (x + amd->x)) ?
  1159 			gp.x = (v->x_pos != (x + amd->x)) ?
  1160 					v->x_pos + ((x + amd->x > v->x_pos) ? 1 : -1) :
  1160 					v->x_pos + ((x + amd->x > v->x_pos) ? 1 : -1) :
  1161 					v->x_pos;
  1161 					v->x_pos;
  1162 			gp.y = (v->y_pos != (y + amd->y)) ?
  1162 			gp.y = (v->y_pos != (y + amd->y)) ?