Merge pull request #15269 from AnturK/fixerinio

Fixes crayon/spraycan buffer mode.
This commit is contained in:
tkdrg
2016-02-08 11:42:46 -03:00
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -420,3 +420,8 @@ var/list/binary = list("0","1")
t = replacetext(t, "\[/list\]", "</ul>")
return t
/proc/char_split(t)
. = list()
for(var/x in 1 to length(t))
. += copytext(t,x,x+1)
+2 -2
View File
@@ -384,12 +384,12 @@
dat = ""
/obj/item/toy/crayon/proc/crayon_text_strip(text)
var/list/base = splittext(lowertext(text),"")
var/list/base = char_split(lowertext(text))
var/list/out = list()
for(var/a in base)
if(a in (letters|numerals))
out += a
return jointext(out, null)
return jointext(out,"")
/obj/item/toy/crayon/Topic(href, href_list, hsrc)
var/temp = "a"