Mercurial > wow > recipeprofit
diff location_cache.lua @ 18:6cdb9377585b v1.01
Location Cache Update
| author | Aaron@Aaron-PC |
|---|---|
| date | Thu, 19 Aug 2010 17:23:57 -0500 |
| parents | 22686cb65c51 |
| children | bdd440ac55be |
line wrap: on
line diff
--- a/location_cache.lua Mon Aug 16 23:07:50 2010 -0500 +++ b/location_cache.lua Thu Aug 19 17:23:57 2010 -0500 @@ -53,8 +53,11 @@ }, } -local function fix_coords(note) - for name, coord in pairs(RECIPEPROFIT_location_cache) do +--[[ + Replaces the X and Y coordinates in the coordinate cached database. +]] +local function fix_coords(note, cdb) + for name, coord in pairs(cdb) do if(note.vendor == name) then note.x = coord.x * 100 note.y = coord.y * 100 @@ -65,10 +68,10 @@ --[[ Overwrites RECIPEPROFIT_alliance and RECIPEPROFIT_horde dbs. ]] -for _, note in pairs(RECIPEPROFIT_alliance) do +for _, note in pairs(RECIPEPROFIT_alliance, RECIPEPROFIT_location_cache) do fix_coords(note) end -for _, note in pairs(RECIPEPROFIT_horde) do +for _, note in pairs(RECIPEPROFIT_horde, RECIPEPROFIT_location_cache) do fix_coords(note) end
