stopStopWatch() and resetStopWatch() not working.

Post Reply
Runei
Posts: 15
Joined: Sun Jan 02, 2011 8:39 am

stopStopWatch() and resetStopWatch() not working.

Post 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?

User avatar
SlySven
Posts: 1034
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK
Discord: SlySven#2703

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

Post 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

Post Reply