Fix: potential bucket corruption in timer reset_buckets (#63427)
Fix: potential bucket corruption in timer reset_buckets (#63427)

Ports Semoro's fix (ss220-space/Paradise#511) related to potential SStimer bucket corruption which caused infinite loop.

    The essence of the fix is that earlier timers with a built linkedlist could get into the second queue, which could cause an incorrect state. It works super stupidly, resets the state to the original correct one

BUT THERE IS STILL A BUG IN THE CODE RELATED TO THE INFINITE LOOP!

For some reason the SStimer on our server started to break recently at the beginning of the round. Found that code for waterfall drip effect was causing the issue. Found that setting frequensy to 0 (and calling reset_bucket sometimes) can be used to reproduce the bug. Tried to fix it with this PR

there is an oustanding bug with airlocks causing SStimer to brake sometimes.


cl
fix: fixed potential bucket corruption in timer reset_buckets
/cl
Jordie0608/tgstation,Cruix/-tg-station,Bawhoppen/-tg-station,Cruix/-tg-station,CPTANT/-tg-station,Cruix/-tg-station,Jordie0608/tgstation,CPTANT/-tg-station,Cruix/-tg-station,Bawhoppen/-tg-station,Bawhoppen/-tg-station,tgstation/-tg-station,Cruix/-tg-station,MicroWorldwide/SS13-TG-station,ShizCalev/tgstation,tgstation/tgstation,ShizCalev/tgstation,Bawhoppen/-tg-station,tgstation/-tg-station,tgstation/tgstation,tgstation/tgstation,MicroWorldwide/SS13-TG-station,tgstation/-tg-station,CPTANT/-tg-station,MicroWorldwide/SS13-TG-station,CPTANT/-tg-station,Bawhoppen/-tg-station,Jordie0608/tgstation,CPTANT/-tg-station,Bawhoppen/-tg-station,tgstation/tgstation,Bawhoppen/-tg-station,ShizCalev/tgstation,Cruix/-tg-station,tgstation/tgstation,tgstation/tgstation,Cruix/-tg-station,MicroWorldwide/SS13-TG-station,ShizCalev/tgstation,tgstation/tgstation,tgstation/-tg-station,Jordie0608/tgstation,tgstation/tgstation,Jordie0608/tgstation,MicroWorldwide/SS13-TG-station,MicroWorldwide/SS13-TG-station,Jordie0608/tgstation,ShizCalev/tgstation,Bawhoppen/-tg-station,CPTANT/-tg-station,Jordie0608/tgstation,MicroWorldwide/SS13-TG-station,CPTANT/-tg-station,Cruix/-tg-station,ShizCalev/tgstation,ShizCalev/tgstation,MicroWorldwide/SS13-TG-station,CPTANT/-tg-station,ShizCalev/tgstation,Jordie0608/tgstation