mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
NTSL code cleanup.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
client/verb/tcssave()
|
||||
/client/verb/tcssave()
|
||||
set hidden = 1
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\client/verb/tcssave() called tick#: [world.time]")
|
||||
if(mob.machine || issilicon(mob))
|
||||
@@ -9,7 +9,7 @@ client/verb/tcssave()
|
||||
|
||||
if(Machine.SelectedServer)
|
||||
var/obj/machinery/telecomms/server/Server = Machine.SelectedServer
|
||||
var/tcscode=winget(src, "tcscode", "text")
|
||||
var/tcscode = winget(src, "tcscode", "text")
|
||||
Server.setcode( tcscode ) // this actually saves the code from input to the server
|
||||
src << output(null, "tcserror") // clear the errors
|
||||
else
|
||||
@@ -23,7 +23,7 @@ client/verb/tcssave()
|
||||
src << output("<font color = red>Failed to save: Unable to locate machine. (Back up your code before exiting the window!)</font color>", "tcserror")
|
||||
|
||||
|
||||
client/verb/tcscompile()
|
||||
/client/verb/tcscompile()
|
||||
set hidden = 1
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\client/verb/tcscompile() called tick#: [world.time]")
|
||||
if(mob.machine || issilicon(mob))
|
||||
@@ -47,7 +47,7 @@ client/verb/tcscompile()
|
||||
|
||||
if(compileerrors.len)
|
||||
src << output("<b>Compile Errors</b>", "tcserror")
|
||||
for(var/scriptError/e in compileerrors)
|
||||
for(var/datum/scriptError/e in compileerrors)
|
||||
src << output("<font color = red>\t>[e.message]</font color>", "tcserror")
|
||||
src << output("([compileerrors.len] errors)", "tcserror")
|
||||
|
||||
@@ -56,7 +56,7 @@ client/verb/tcscompile()
|
||||
if(M.client)
|
||||
M << output(null, "tcserror")
|
||||
M << output("<b>Compile Errors</b>", "tcserror")
|
||||
for(var/scriptError/e in compileerrors)
|
||||
for(var/datum/scriptError/e in compileerrors)
|
||||
M << output("<font color = red>\t>[e.message]</font color>", "tcserror")
|
||||
M << output("([compileerrors.len] errors)", "tcserror")
|
||||
|
||||
@@ -80,7 +80,7 @@ client/verb/tcscompile()
|
||||
src << output(null, "tcserror")
|
||||
src << output("<font color = red>Failed to compile: Unable to locate machine. (Back up your code before exiting the window!)</font color>", "tcserror")
|
||||
|
||||
client/verb/tcsrun()
|
||||
/client/verb/tcsrun()
|
||||
set hidden = 1
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\client/verb/tcsrun() called tick#: [world.time]")
|
||||
if(mob.machine || issilicon(mob))
|
||||
@@ -117,7 +117,7 @@ client/verb/tcsrun()
|
||||
src << output("<font color = red>Failed to run: Unable to locate machine. (Back up your code before exiting the window!)</font color>", "tcserror")
|
||||
|
||||
|
||||
client/verb/exittcs()
|
||||
/client/verb/exittcs()
|
||||
set hidden = 1
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\client/verb/exittcs() called tick#: [world.time]")
|
||||
if(mob.machine || issilicon(mob))
|
||||
@@ -130,7 +130,7 @@ client/verb/exittcs()
|
||||
if(mob in Machine.viewingcode)
|
||||
Machine.viewingcode.Remove(mob)
|
||||
|
||||
client/verb/tcsrevert()
|
||||
/client/verb/tcsrevert()
|
||||
set hidden = 1
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\client/verb/tcsrevert() called tick#: [world.time]")
|
||||
if(mob.machine || issilicon(mob))
|
||||
@@ -160,7 +160,7 @@ client/verb/tcsrevert()
|
||||
src << output("<font color = red>Failed to revert: Unable to locate machine.</font color>", "tcserror")
|
||||
|
||||
|
||||
client/verb/tcsclearmem()
|
||||
/client/verb/tcsclearmem()
|
||||
set hidden = 1
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\client/verb/tcsclearmem() called tick#: [world.time]")
|
||||
if(mob.machine || issilicon(mob))
|
||||
|
||||
Reference in New Issue
Block a user