Skip to content
Snippets Groups Projects
Commit 43d71a91 authored by DarkGod's avatar DarkGod
Browse files

remove debug

parent 56b08acf
No related branches found
No related tags found
No related merge requests found
......@@ -877,20 +877,14 @@ end
-- @param ... arguments to pass to result_attr if it is a function
-- @return the difference, the from result, the to result
function _M:getAttrChange(changed_attr, from, to, result_attr, ...)
print("GET_ATTR_CHANGE:", changed_attr, result_attr)
local temp = self:addTemporaryValue(changed_attr, from)
local from_result = util.getval(self[result_attr], self, ...)
self:removeTemporaryValue(changed_attr, temp)
print(("%s"):format(from_result))
temp = self:addTemporaryValue(changed_attr, to)
local to_result = util.getval(self[result_attr], self, ...)
self:removeTemporaryValue(changed_attr, temp)
print(("%s"):format(to_result))
return to_result - from_result, from_result, to_result
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment