Dinosaurs survived rapid climate change