From 8e742832405d66bb2abc4e138e6922950e205aff Mon Sep 17 00:00:00 2001 From: Tigercat2000 Date: Fri, 6 Nov 2015 12:02:57 -0800 Subject: [PATCH] Fix traffic control computer --- .../machinery/telecomms/traffic_control.dm | 36 ++++++++++--------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/code/game/machinery/telecomms/traffic_control.dm b/code/game/machinery/telecomms/traffic_control.dm index 6fc03276f9b..da8669e45e0 100644 --- a/code/game/machinery/telecomms/traffic_control.dm +++ b/code/game/machinery/telecomms/traffic_control.dm @@ -90,30 +90,33 @@ } -
- +
+ +
- - + } + ); -
- - -
-
+ function compileCode() { + var codeText = cMirror_fSubmit.getValue(); + window.location = "byond://?src=\ref[src];choice=Compile;cMirror=" + encodeURIComponent(codeText); + } + + function clearCode() { + window.location = "byond://?src=\ref[src];choice=Clear;"; + } + + Compile + Clear
[compiling_errors] @@ -220,6 +223,7 @@ Server.memory = list() // clear the memory compiling_errors = "Server Memory Cleared!" + storedcode = null updateUsrDialog() if(href_list["viewserver"])