From e18574273a66d4b2924561dff804b7001df8a74c Mon Sep 17 00:00:00 2001 From: mfranz Date: Sat, 15 Apr 2006 21:09:35 +0000 Subject: [PATCH] whoops ... forgot to remove some experimental code ... which doesn't work :-( --- Aircraft/ufo/ufo.nas | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Aircraft/ufo/ufo.nas b/Aircraft/ufo/ufo.nas index 46bcae815..d3023b7ca 100644 --- a/Aircraft/ufo/ufo.nas +++ b/Aircraft/ufo/ufo.nas @@ -482,7 +482,6 @@ Dynamic = { m.load(); m.flash_count = 0; m.visible = 1; - m.on_flash_exit_func = func {}; return m; }, del : func { @@ -512,11 +511,8 @@ Dynamic = { me.add_derived_props(n); return n; }, - flash : func(v, fun = nil) { + flash : func(v) { me.flash_count = v; - if (fun != nil) { - me.on_flash_exit_func = fun; - } me._flash_(); }, _flash_ : func { @@ -530,8 +526,6 @@ Dynamic = { if (me.flash_count) { me.flash_count -= 1; settimer(func { me._flash_() }, 0.3); - } else { - me.on_flash_exit_func(); } }, }; @@ -616,7 +610,7 @@ ModelMgr = { me.static = left; } } - if (me.dynamic != nil) { # last one removed + if (me.dynamic != nil) { me.dynamic.flash(4); } me.display_status(me.modelpath);