allow _wait to be used without a parameter

This commit is contained in:
AJ Kelly
2011-12-27 20:49:07 -06:00
parent 907e3922d1
commit 5d7674f233
+4 -1
View File
@@ -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); };