diff --git a/TomTom.lua b/TomTom.lua
index b0ab094..2f47869 100755
--- a/TomTom.lua
+++ b/TomTom.lua
@@ -1,5 +1,7 @@
--[[--------------------------------------------------------------------------
-- TomTom by Cladhaire <cladhaire@gmail.com>
+--
+-- All Rights Reserved
----------------------------------------------------------------------------]]
-- Simple localization table for messages
@@ -289,7 +291,7 @@ function TomTom:ReloadWaypoints()
persistent = waypoint.persistent,
minimap = minimap,
world = world,
- custom_callbacks = nil,
+ callbacks = nil,
silent = true,
})
end
@@ -782,7 +784,7 @@ function TomTom:AddWaypoint(x, y, desc, persistent, minimap, world, silent)
return self:AddZWaypoint(c, z, x, y, desc, persistent, minimap, world, nil, silent)
end
-function TomTom:AddZWaypoint(c, z, x, y, desc, persistent, minimap, world, custom_callbacks, silent, crazy)
+function TomTom:AddZWaypoint(c, z, x, y, desc, persistent, minimap, world, callbacks, silent, crazy)
-- Convert the c,z,x,y tuple to m,f,x,y and pass the work off to AddMFWaypoint()
local mapId, floor = astrolabe:GetMapID(c, z)
if not mapId then
@@ -794,7 +796,7 @@ function TomTom:AddZWaypoint(c, z, x, y, desc, persistent, minimap, world, custo
persistent = persistent,
minimap = minimap,
world = world,
- custom_callbacks = custom_callbacks,
+ callbacks = callbacks,
silent = silent,
crazy = crazy,
})
@@ -804,8 +806,8 @@ function TomTom:AddMFWaypoint(m, f, x, y, opts)
opts = opts or {}
local callbacks
- if opts.custom_callbacks then
- callbacks = opts.custom_callbacks
+ if opts.callbacks then
+ callbacks = opts.callbacks
else
callbacks = {
minimap = {
diff --git a/TomTom.toc b/TomTom.toc
index ed93b19..3ba6bd4 100755
--- a/TomTom.toc
+++ b/TomTom.toc
@@ -2,6 +2,7 @@
## Title: TomTom
## Author: jnwhiteh
## Version: @project-version@
+## License: All Rights Reserved
## Notes: Acts as your portable navigation assistant
## Notes-zhCN:一个简单的导航助手。
## Notes-ruRU: Удобный портативный навигатор по игровой карте