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