From 8d62bc2b0fc6c6a315953666325bacf5254d56a0 Mon Sep 17 00:00:00 2001 From: mfranz <mfranz> Date: Sun, 18 Jan 2009 16:15:02 +0000 Subject: [PATCH] Anders GIDENSTAM: center dialog and print report only when there was a fire --- Nasal/wildfire.nas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nasal/wildfire.nas b/Nasal/wildfire.nas index e9b1c2f5a..1ce94caac 100644 --- a/Nasal/wildfire.nas +++ b/Nasal/wildfire.nas @@ -822,7 +822,7 @@ _setlistener("/sim/signals/nasal-dir-initialized", func { mp_broadcast.BroadcastChannel.new(msg_channel_mpp, parse_msg); setlistener("/sim/signals/exit", func { - if (getprop(report_score_pp)) + if (getprop(report_score_pp) and (CAFire.cells_created > 0)) print_score(); if (getprop(save_on_exit_pp)) CAFire.save_event_log(SAVEDIR ~ "fire_log.xml"); @@ -943,7 +943,7 @@ var dialog = { show : func { if (!CONFIG_DLG) { CONFIG_DLG = 1; - me.init(100, 100); + me.init(); me.create(); } },