diff --git a/code/game/machinery/doors/brigdoors.dm b/code/game/machinery/doors/brigdoors.dm
index 818f251024c..9d0d3da3775 100644
--- a/code/game/machinery/doors/brigdoors.dm
+++ b/code/game/machinery/doors/brigdoors.dm
@@ -46,7 +46,7 @@
Admission data:
Log generated at: [worldtime2text()]
Detainee: [logname]
- Duration: [timetoset/10] seconds
+ Duration: [seconds_to_time(timetoset / 10)]
Charge(s): [logcharges]
Arresting Officer: [usr.name]
This log file was generated automatically upon activation of a cell timer."}
@@ -55,7 +55,7 @@
cell_logs += P
var/datum/data/record/R = find_security_record("name", logname)
- Radio.autosay("Detainee [logname] has been incarcerated for [timetoset/10] seconds for the charges of, '[logcharges]'. \
+ Radio.autosay("Detainee [logname] has been incarcerated for [seconds_to_time(timetoset / 10)] seconds for the charges of, '[logcharges]'. \
Arresting Officer: [usr.name].[R ? "" : " Detainee record not found, manual record update required."]", name, "Security", list(z))
if(R)
@@ -277,7 +277,7 @@
dat += "Set Timer: [(setminute ? text("[setminute]:") : null)][setsecond]
"
// Controls
- dat += "- - + +
"
+ dat += "Set Timer"
// Mounted flash controls
for(var/obj/machinery/flasher/F in targets)
@@ -319,13 +319,9 @@
Radio.autosay("Timer stopped manually by [usr.name].", name, "Security", list(z))
else
- if(href_list["tp"]) //adjust timer, close door if not already closed
- var/tp = text2num(href_list["tp"])
- var/addtime = (timetoset / 10)
- addtime += tp
- addtime = min(max(round(addtime), 0), 3600)
-
- timeset(addtime)
+ if(href_list["settime"])
+ var/time = min(max(round(return_time_input(usr)), 0), 3600)
+ timeset(time)
if(href_list["fc"])
for(var/obj/machinery/flasher/F in targets)
@@ -368,6 +364,11 @@
overlays.Cut()
overlays += image('icons/obj/status_display.dmi', icon_state=picture_state)
+/obj/machinery/door_timer/proc/return_time_input()
+ var/mins = input(usr, "Minutes", "Enter number of minutes", 0) as num
+ var/seconds = input(usr, "Seconds", "Enter number of seconds", 0) as num
+ var/totaltime = (seconds + (mins * 60))
+ return totaltime
//Checks to see if there's 1 line or 2, adds text-icons-numbers/letters over display
// Stolen from status_display