Page 1 of 1

stopStopWatch() and resetStopWatch() not working.

Posted: Wed Mar 02, 2016 1:51 am
by Runei
So I've working on a personal xp tracker to work with my stuff. However, I noticed that the stopwatch doesn't actually reset or stop.

Here's what I have for starting the alias to initialize:
Code: [show] | [select all] lua
xpWatch = xpWatch or createStopWatch()
startStopWatch(xpWatch)
xpCount = 0
My math works, but once I disable my hunting stuff, this is what I have:
Code: [show] | [select all] lua
stopStopWatch(xpWatch)
resetStopWatch(xpWatch)
Yet when I try to get the value from stopStopWatch(xpWatch), the counter keeps increasing. Am I missing something, or is this intended?

Re: stopStopWatch() and resetStopWatch() not working.

Posted: Thu Mar 03, 2016 11:23 am
by SlySven
It is a bug that I found a while back but never got around to fixing. *sigh*

Someone will have to find time to gaze into the code base in the TLuaInterpreter class - though the last time I did that I'm sure it started looking back at me. :o