Fix rotating ship ends and ship end orientation when drawing ships.