From 282db9de61a6d3e017a0e1806e65be43f317ac08 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Ekstr=C3=B6m?= Date: Tue, 11 Nov 2014 14:15:47 +0200 Subject: [PATCH] config: fix inverted bit field check for a flag Change-Id: I5085df0ee69d1437f1a79b60b2994c1b3e116fd9 --- packaging.in/murphy.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packaging.in/murphy.lua b/packaging.in/murphy.lua index 8c7e68b..552b309 100644 --- a/packaging.in/murphy.lua +++ b/packaging.in/murphy.lua @@ -1726,8 +1726,10 @@ if sc then local time = 200 if msg.arg.anim_time then local t = msg.arg.anim_time + -- the actual time for the animation time = m:AND(t, time_mask) - nores = not m:AND(t, nores_mask) + -- flag for ignoring resource control + nores = m:AND(t, nores_mask) if m:AND(t, raise_mask) then msg.arg.raise = 1 elseif m:AND(t, lower_mask) then @@ -1770,8 +1772,10 @@ if sc then local time = 200 if msg.arg.anim_time then local t = msg.arg.anim_time + -- the actual time for the animation time = m:AND(t, time_mask) - nores = not m:AND(t, nores_mask) + -- flag for ignoring resource control + nores = m:AND(t, nores_mask) end if msg.arg.anim_name then a.hide = { msg.arg.anim_name, time } -- 2.7.4