From 67e14ee50d2c6893404b6d93b1109873bfe78dc2 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 17 Dec 2007 22:02:04 +0000 Subject: [PATCH] =?UTF-8?q?http://eressea.upb.de/mantis/view.php=3Fid=3D13?= =?UTF-8?q?06=20"Probleme=20mit=20Weihnachtsb=C3=A4umen"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scripts/eressea/xmas2006.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/scripts/eressea/xmas2006.lua b/src/scripts/eressea/xmas2006.lua index 6125483d9..25f15d84f 100644 --- a/src/scripts/eressea/xmas2006.lua +++ b/src/scripts/eressea/xmas2006.lua @@ -14,8 +14,6 @@ function update_xmas2006() if season == "calendar::winter" then print("it is " .. season .. ", the christmas trees do their magic") local msg = message("xmastree_effect") - local nextseason = get_season(turn-1) - local clear = (nextseason ~= "calendar::winter") for r in regions() do if r:get_key("xm06") then trees = r:get_resource("tree") @@ -24,7 +22,15 @@ function update_xmas2006() msg:send_region(r) end if clear then - -- we celebrate knut and kick out the trees. + end + end + end + else + local prevseason = get_season(turn-1) + if prevseason == "calendar::winter" then + -- we celebrate knut and kick out the trees. + for r in regions() do + if r:get_key("xm06") then r:set_key("xm06", false) end end