git
/
wowui.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
cd9dfa5
)
0c89853 - Remove debug prints
author
Aleksi Blinnikka <aleksi.blinnikka@gmail.com>
Mon, 26 Mar 2018 10:00:33 +0000
committer
Aleksi Blinnikka <aleksi.blinnikka@gmail.com>
Mon, 26 Mar 2018 10:00:33 +0000
OmaCD/Inspect.lua
patch
|
blob
|
history
diff --git
a/OmaCD/Inspect.lua
b/OmaCD/Inspect.lua
index
3f223ad
..
5c5fb5e
100644
(file)
--- a/
OmaCD/Inspect.lua
+++ b/
OmaCD/Inspect.lua
@@
-45,7
+45,6
@@
local function inspect(id)
CheckInteractDistance(id, 1) and CanInspect(id) then
if not inspecting then
inspecting = guid;
CheckInteractDistance(id, 1) and CanInspect(id) then
if not inspecting then
inspecting = guid;
- print("Sending inspect", UnitName(id));
NotifyInspect(id);
redoGuid = guid;
CTimerAfter(20, redo);
NotifyInspect(id);
redoGuid = guid;
CTimerAfter(20, redo);
@@
-107,7
+106,7
@@
function OmaInspect.Request(guid, id, callback, needItems, force)
end
local function inspectReady(guid)
end
local function inspectReady(guid)
- if not guid or inspecting ~= guid then
print("Got inspect from elsewhere");
return end
+ if not guid or inspecting ~= guid then return end
local cached = cache[guid];
if cached and cached.id and UnitGUID(cached.id) == guid then
local time = GetTime();
local cached = cache[guid];
if cached and cached.id and UnitGUID(cached.id) == guid then
local time = GetTime();
@@
-132,7
+131,6
@@
local function inspectReady(guid)
if not inspectui then ClearInspectPlayer() end
if (cached.needItems and cached.weapon) or
(not cached.needItems and cached.talent ~= nil) then
if not inspectui then ClearInspectPlayer() end
if (cached.needItems and cached.weapon) or
(not cached.needItems and cached.talent ~= nil) then
- print("Got inspect done", UnitName(id));
cached.cb(guid, cached.spec, cached.talent, cached.weapon, cached.wrist);
else
pending[guid] = true;
cached.cb(guid, cached.spec, cached.talent, cached.weapon, cached.wrist);
else
pending[guid] = true;