1
0
Fork 0

Disable time easing if ctrl key pressed.

This commit is contained in:
Richard Harrison 2019-04-28 19:40:01 +02:00
parent 1399640d79
commit 9121079cfe

View file

@ -450,7 +450,7 @@ void TimeManager::setTimeOffset(const std::string& offset_type, long int offset)
warp = 0;
}
if( fgGetBool("/sim/time/warp-easing", false) ) {
if( fgGetBool("/sim/time/warp-easing", false) && !fgGetBool("/devices/status/keyboard/ctrl", false)) {
double duration = fgGetDouble("/sim/time/warp-easing-duration-secs", 5.0 );
const string easing = fgGetString("/sim/time/warp-easing-method", "swing" );
SGPropertyNode n;