From 1ee5cea2f9ee2fd4dd890ca20da96d7a99bd50ed Mon Sep 17 00:00:00 2001 From: mfranz Date: Mon, 30 Jan 2006 15:35:00 +0000 Subject: [PATCH] revert for now: there's one nasal interpreter problem left to solve first --- Nasal/gui.nas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Nasal/gui.nas b/Nasal/gui.nas index 26d3e3450..ec49b928e 100644 --- a/Nasal/gui.nas +++ b/Nasal/gui.nas @@ -71,9 +71,9 @@ INIT = func { menuEnable("autopilot", props.globals.getNode("/autopilot/KAP140/locks") == nil); var fps = props.globals.getNode("/sim/rendering/fps-display", 1); - setlistener(fps, fpsDisplay, 1); - setlistener("/sim/startup/xsize", - func { if (fps.getValue()) { fpsDisplay(0); fpsDisplay(1) } }); + if (fps.getValue()) { fpsDisplay(1) } + setlistener(fps, fpsDisplay); + setlistener("/sim/startup/xsize", func { if (fps.getValue()) { fpsDisplay(0); fpsDisplay(1) } }); } settimer(INIT, 0);