From 5d7674f2333370b6aa4cd53fb65ba7be4d2b67db Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Tue, 27 Dec 2011 20:49:07 -0600 Subject: [PATCH] allow _wait to be used without a parameter --- Themes/_fallback/BGAnimations/_wait.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Themes/_fallback/BGAnimations/_wait.lua b/Themes/_fallback/BGAnimations/_wait.lua index 70d72b18be..c39ccb136e 100644 --- a/Themes/_fallback/BGAnimations/_wait.lua +++ b/Themes/_fallback/BGAnimations/_wait.lua @@ -1,3 +1,6 @@ local waitTime = ... -assert(waitTime,"[_wait] requires a wait time") + +-- default to 1 second if parameter is missing +if not waitTime then waitTime = 1 end + return Def.Actor{ OnCommand=cmd(sleep,waitTime); }; \ No newline at end of file