# HG changeset patch # User Caleb Atherton # Date 1532072628 14400 # Node ID bb5a42af4db0daa1420bba30b00d7283e0f97f4c # Parent 1cff67298998e4afddc72bbf343c91d51986e439 Fixed fishing loot location recording. diff -r 1cff67298998 -r bb5a42af4db0 Main.lua --- a/Main.lua Wed Jul 18 02:53:45 2018 -0400 +++ b/Main.lua Fri Jul 20 03:43:48 2018 -0400 @@ -441,9 +441,9 @@ -- Special case for Fishing. if current_action.spell_label == "FISHING" then - local _, qx, qy = _G.GetWorldLocFromMapPos(0, 0) - local _, wx, wy = _G.GetWorldLocFromMapPos(1, 1) - local yard_width, yard_height = qy - wy, qx - wx + local _, q_vector = _G.C_Map.GetWorldPosFromMapPos(area_id, _G.CreateVector2D(0,0)) + local _, w_vector = _G.C_Map.GetWorldPosFromMapPos(area_id, _G.CreateVector2D(1,1)) + local yard_width, yard_height = q_vector.y - w_vector.y, q_vector.x - w_vector.x if yard_width > 0 and yard_height > 0 then x, y = FishingCoordinates(x, y, yard_width, yard_height)