refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-04 20:03:49 +02:00
parent 19f42cc9c9
commit 94488eb75f
8 changed files with 55 additions and 63 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ function private.scan_wdb(item_id)
if item_id <= m.MAX_ITEM_ID then
local t0 = GetTime()
aux.control.as_soon_as(function() return GetTime() - t0 > 0.1 end, m.scan_wdb, item_id)
aux.control.thread(aux.control.when, function() return GetTime() - t0 > 0.1 end, m.scan_wdb, item_id)
else
sort(aux_auctionable_items, function(a, b) return strlen(a) < strlen(b) or (strlen(a) == strlen(b) and a < b) end)
end