equal
deleted
inserted
replaced
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)) ? |