Camera code update, fix runtime

This commit is contained in:
Markolie
2015-02-10 15:42:47 +01:00
parent 3a4679bce7
commit c507158b8f
20 changed files with 629 additions and 242 deletions
+3 -1
View File
@@ -1,7 +1,7 @@
json_writer
proc
WriteObject(list/L)
WriteObject(list/L, cached_data = null)
. = "{"
var/i = 1
for(var/k in L)
@@ -9,6 +9,8 @@ json_writer
. += {"\"[k]\":[write(val)]"}
if(i++ < L.len)
. += ","
if(cached_data)
. = copytext(., 1, lentext(.)) + ",\"cached\":[cached_data]}"
.+= "}"
write(val)