# HG changeset patch # User Aaron@Aaron-PC # Date 1282256637 18000 # Node ID 6cdb9377585b7b86de70a28671401a75204adcdb # Parent 22686cb65c51a534ae69e4b91f18ddc3bd663b75 Location Cache Update diff -r 22686cb65c51 -r 6cdb9377585b location_cache.lua --- 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