Fix station_heights bug and use FOR_ALL_RIDES in ride_check_all_reachable