mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Merge pull request #6486 from eswordthecat/local-gc
Remove del and unnecessary assignments at rd console proc.
This commit is contained in:
@@ -116,14 +116,13 @@ won't update every console in existence) but it's more of a hassle to do. Also,
|
|||||||
/obj/machinery/computer/rdconsole/proc/CallTechName(var/ID) //A simple helper proc to find the name of a tech with a given ID.
|
/obj/machinery/computer/rdconsole/proc/CallTechName(var/ID) //A simple helper proc to find the name of a tech with a given ID.
|
||||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/rdconsole/proc/CallTechName() called tick#: [world.time]")
|
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/rdconsole/proc/CallTechName() called tick#: [world.time]")
|
||||||
var/datum/tech/check_tech
|
var/datum/tech/check_tech
|
||||||
var/return_name = null
|
var/return_name = ""
|
||||||
for(var/T in typesof(/datum/tech) - /datum/tech)
|
|
||||||
check_tech = null
|
for (var/T in typesof(/datum/tech) - /datum/tech)
|
||||||
check_tech = new T()
|
check_tech = T
|
||||||
if(check_tech.id == ID)
|
|
||||||
return_name = check_tech.name
|
if (initial(check_tech.id) == ID)
|
||||||
del(check_tech)
|
return_name = initial(check_tech.name)
|
||||||
check_tech = null
|
|
||||||
break
|
break
|
||||||
|
|
||||||
return return_name
|
return return_name
|
||||||
|
|||||||
Reference in New Issue
Block a user