From 4100dc0f7b03a64a36f343dab18f7c2ef3d598c2 Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 9 Sep 2005 01:41:08 +0000 Subject: [PATCH] gearDown() expects a number either < 0 or > 0 to specify the direction of gear movement. gearToggle() was sending either a 0 (not handled) or a 1. Change gearToggle() so it sends either -1 and 1 so gearToggle() will work again. --- Nasal/controls.nas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nasal/controls.nas b/Nasal/controls.nas index 5156d0159..fdc79322c 100644 --- a/Nasal/controls.nas +++ b/Nasal/controls.nas @@ -328,5 +328,5 @@ gearDown = func { setprop("/controls/gear/gear-down", 1); } } -gearToggle = func { gearDown(getprop("/controls/gear/gear-down") > 0 ? 0 : 1); } +gearToggle = func { gearDown(getprop("/controls/gear/gear-down") > 0 ? -1 : 1); }