tgstation/-tg-station — pull request #1272 by fleure (2013-08-31 17:07:47+00:00)
Title: Fixed brig doors counting down when timer is stopped

Fix for #257
The brig timer ticks down even when the door isn't activated.

Not a very elegant solution, but I'd rather not add more complexity to the process() proc than needed. The problem arises from the timer being based on the current time when the user sets the lock timer, and since time is always moving on, T-0 gets ever closer. I have added an additional var and logic to recall the amount of time when the timer is off and the user sets a time, and begins using the original logic of waiting for the actual game to occur and unlock when the doors are locked and brig countdown is supposed to begin.