Bug fixes

This commit is contained in:
Jack Edge
2016-06-25 11:39:18 +01:00
parent 87016bc6cd
commit 177dcbe16b
2 changed files with 4 additions and 4 deletions
+1 -2
View File
@@ -69,8 +69,7 @@
return 0
/obj/machinery/transformer/process()
. = ..()
if(cooldown && cooldown_timer <= world.time)
if(cooldown && (cooldown_timer <= world.time))
cooldown = FALSE
update_icon()
+3 -2
View File
@@ -124,11 +124,12 @@
/obj/effect/countdown/transformer
name = "transformer countdown"
text_color = "#4C5866"
/obj/effect/countdown/transformer/get_value()
var/obj/machinery/transformer/T = attached_to
if(!istype(T))
return
else if(T.cooldown)
var/seconds_left = (T.cooldown_timer - world.time) / 10
return "[max(seconds_left, 0)]"
var/seconds_left = max(0, (T.cooldown_timer - world.time) / 10)
return "[round(seconds_left)]"