Mercurial > wow > ouroloot
comparison gui.lua @ 131:acaa01b90505 beta-mhg-5
'Clear' no longer needs to run this loop.
| author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
|---|---|
| date | Mon, 27 Aug 2012 03:24:38 -0400 |
| parents | 08d3d2b7c31d |
| children | c176359e7265 |
comparison
equal
deleted
inserted
replaced
| 130:08d3d2b7c31d | 131:acaa01b90505 |
|---|---|
| 382 ]] | 382 ]] |
| 383 function addon:_fill_out_eoi_data (opt_starting_index) | 383 function addon:_fill_out_eoi_data (opt_starting_index) |
| 384 if #g_loot < 1 then | 384 if #g_loot < 1 then |
| 385 --pprint('_f_o_e_d', "#g_loot<1") | 385 --pprint('_f_o_e_d', "#g_loot<1") |
| 386 self.loot_clean = nil | 386 self.loot_clean = nil |
| 387 opt_starting_index = nil | 387 return |
| 388 end | 388 end |
| 389 | 389 |
| 390 local display_bcast_from = self.db.profile.display_bcast_from | 390 local display_bcast_from = self.db.profile.display_bcast_from |
| 391 local colcount = #eoi_st_cols | 391 local colcount = #eoi_st_cols |
| 392 | 392 |
| 393 -- 'while true' so that we can use (inner) break as (outer) continue | |
| 394 local start = opt_starting_index or | 393 local start = opt_starting_index or |
| 395 math_min (#g_dloot, self.loot_clean or math_huge, #g_loot) | 394 math_min (#g_dloot, self.loot_clean or math_huge, #g_loot) |
| 395 if start < 1 then return end | |
| 396 | |
| 397 -- 'while true' so that we can use (inner) break as (outer) continue | |
| 396 for i = start, #g_loot do while true do | 398 for i = start, #g_loot do while true do |
| 397 local e = g_dloot[i] | 399 local e = g_dloot[i] |
| 398 if e == nil then | 400 if e == nil then |
| 399 self.loot_clean = nil | 401 self.loot_clean = nil |
| 400 pprint('_f_o_e_d', "index",i,"somehow still in loop past",#g_loot,"bailing") | 402 pprint('_f_o_e_d', "index",i,"somehow still in loop past",#g_loot,"bailing") |
