Merge pull request #920 from Giacomand/revert_compile

Reverting NTSL compile times.
This commit is contained in:
KazeEspada
2013-07-07 18:12:54 -07:00
2 changed files with 2 additions and 9 deletions
@@ -513,7 +513,7 @@ var/global/list/obj/machinery/telecomms/telecomms_list = list()
var/list/memory = list() // stored memory
var/rawcode = "" // the code to compile (raw text)
var/compiling = 0 // Are we compiling?
var/datum/TCS_Compiler/Compiler // the compiler that compiles and runs the code
var/autoruncode = 0 // 1 if the code is set to run every time a signal is picked up
@@ -615,13 +615,8 @@ var/global/list/obj/machinery/telecomms/telecomms_list = list()
/obj/machinery/telecomms/server/proc/compile(var/mob/user)
if(Compiler && !compiling)
// BONUS FEATURE: REAL LIFE COMPILE TIME FOR 2556 SPACE MENS
compiling = 1
if(length(rawcode)) // Don't bother compiling if it's empty code.
sleep(Clamp((10 + length(rawcode)) / 5, 100, 1500)) // Max time: 2.5 minutes - Min time: 10 seconds
if(Compiler)
admin_log(user)
compiling = 0
return Compiler.Compile(rawcode)
/obj/machinery/telecomms/server/proc/update_logs()
-2
View File
@@ -39,8 +39,6 @@ client/verb/tcscompile()
src << output(null, "tcserror")
src << output("<font color = black>Please wait, compiling...</font>", "tcserror")
if(Server.compiling)
return
var/list/compileerrors = Server.compile(mob) // then compile the code!
if(!telecomms_check(mob))
return