From 817279c7a839ac7e5d1c590dceee55f99d6f9a59 Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 23 Dec 1999 19:38:40 +0000 Subject: [PATCH] Removed libVoronoi.a Added Ctrl-U key binding to force an instant altitude gain of 1000'. --- src/Main/Makefile.am | 3 +-- src/Main/keyboard.cxx | 9 +++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Main/Makefile.am b/src/Main/Makefile.am index 4b0038698..3d4f54170 100644 --- a/src/Main/Makefile.am +++ b/src/Main/Makefile.am @@ -7,8 +7,7 @@ endif if ENABLE_OLD_WEATHER WEATHER_LIBS = $(top_builddir)/Simulator/Weather/libWeather.a else -WEATHER_LIBS = $(top_builddir)/Simulator/WeatherCM/libWeatherCM.a \ - $(top_builddir)/Lib/Voronoi/libVoronoi.a +WEATHER_LIBS = $(top_builddir)/Simulator/WeatherCM/libWeatherCM.a endif if OLD_AUTOMAKE diff --git a/src/Main/keyboard.cxx b/src/Main/keyboard.cxx index b7cdf9b5e..eb1a08191 100644 --- a/src/Main/keyboard.cxx +++ b/src/Main/keyboard.cxx @@ -119,6 +119,15 @@ void GLUTkey(unsigned char k, int x, int y) { case 20: // Ctrl-T key fgAPToggleTerrainFollow(); return; + case 21: // Ctrl-U key + // add 1000' of emergency altitude. Possibly good for + // unflipping yourself :-) + { + double alt = cur_fdm_state->get_Altitude() + 1000; + fgFDMForceAltitude( current_options.get_flight_model(), + alt * FEET_TO_METER ); + } + return; case 49: // numeric keypad 1 v->set_goal_view_offset( FG_PI * 0.75 ); return;