tgui radios; clean up frequency code

This commit is contained in:
Bjorn Neergaard
2016-01-18 14:28:33 -06:00
parent a1ff8e8783
commit 5cfc60d9da
15 changed files with 201 additions and 217 deletions
+1 -1
View File
@@ -7,6 +7,6 @@
/var/global/datum/ui_state/inventory_state/inventory_state = new()
/datum/ui_state/inventory_state/can_use_topic(src_object, mob/user)
if(!(src_object in user))
if(!(src_object in user.contents))
return UI_CLOSE
return user.shared_ui_interaction(src_object)
+4 -3
View File
@@ -244,10 +244,11 @@
json_data["data"] = data
json_data["adata"] = data
// Generate the JSON; replace bad characters.
// Generate the JSON.
var/json = JSON.stringify(json_data)
json = replacetextEx(json, "\improper", "")
// Strip #255/improper.
json = regex_replaceall(json, "\improper", "")
json = regex_replaceall(json, "\proper", "")
return json
/**