summaryrefslogtreecommitdiff
path: root/script/brave/brave.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/brave/brave.lua')
-rw-r--r--script/brave/brave.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/script/brave/brave.lua b/script/brave/brave.lua
index c497c093..44176337 100644
--- a/script/brave/brave.lua
+++ b/script/brave/brave.lua
@@ -43,12 +43,7 @@ end
function m.start()
m.push('mem', collectgarbage 'count')
while true do
- local suc, name, id, params = m.taskpad:pop()
- if not suc then
- -- 找不到工作的勇者,只好睡觉
- thread.sleep(0.01)
- goto CONTINUE
- end
+ local name, id, params = m.taskpad:bpop()
local ability = m.ability[name]
-- TODO
if not ability then