From a04daf159f037320635a99e0ab53608878d70d10 Mon Sep 17 00:00:00 2001 From: Giacomand Date: Thu, 4 Jul 2013 23:01:48 +0100 Subject: [PATCH] Reverting compile times. They were just annoying and a bad idea. --- code/game/machinery/telecomms/telecomunications.dm | 9 ++------- code/modules/scripting/IDE.dm | 2 -- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/code/game/machinery/telecomms/telecomunications.dm b/code/game/machinery/telecomms/telecomunications.dm index 1f59dbe475a..a44326ebbcd 100644 --- a/code/game/machinery/telecomms/telecomunications.dm +++ b/code/game/machinery/telecomms/telecomunications.dm @@ -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() diff --git a/code/modules/scripting/IDE.dm b/code/modules/scripting/IDE.dm index c1578d8e4b8..a7a9f25b1da 100644 --- a/code/modules/scripting/IDE.dm +++ b/code/modules/scripting/IDE.dm @@ -39,8 +39,6 @@ client/verb/tcscompile() src << output(null, "tcserror") src << output("Please wait, compiling...", "tcserror") - if(Server.compiling) - return var/list/compileerrors = Server.compile(mob) // then compile the code! if(!telecomms_check(mob)) return