are you sure?
why are the (blah)_last stored as $time - $time % 60 or something strangely complex rather than just $time?
its confusing me the way its being calculated
ill look further into it and see if i can understand it better
but id like to mention that something isnt working completely right because pvt sell refills way too fast..
could someone verify whether my "fix" is the "desired" behavior?
"The truth is a trap: you can not get it without it getting you; you cannot get the truth by capturing it, only by its capturing you." - Søren Kierkegaard
If you go down to the woods today, you better not go alone
It's a lovely day in the woods today, but safer to stay at home
BECAUSE EVIL FREEN IS KILLING ALL THE TEDDY BEARS AT THEIR PICNIC
I have no idea here so disregard if this seems obvious but, why is the return from howmanytimes() rounded instead of floored? Is that somehow related to the $time - $time % 60 thing?
Suppose something happens every 10 minutes. Event last occured at 11000 and the time now is 11300 (yes I know, 1970 was a long time ago), the event will be triggered because you round up:
Last time will be stored as (11300) - (11300 % (600)) = 11300 - 500 = 10800?!
Now if the page is reaccessed, will it not happen again?
EDIT: I believe if you floor this resolves itself.
"The truth is a trap: you can not get it without it getting you; you cannot get the truth by capturing it, only by its capturing you." - Søren Kierkegaard