Update our /Topic code to prevent exploits

This commit is contained in:
Markolie
2015-02-09 18:22:22 +01:00
parent 2c578ee759
commit c2058c4a9d
50 changed files with 132 additions and 80 deletions
+6
View File
@@ -20,6 +20,12 @@
// What reagents should be logged when transferred TO this object?
// Reagent ID => friendly name
var/list/reagents_to_log=list()
/obj/Topic(href, href_list, var/nowindow = 0)
// Calling Topic without a corresponding window open causes runtime errors
if(nowindow)
return 0
return ..()
/obj/Destroy()
machines -= src