replaces lentext() with length()

This commit is contained in:
Kyep
2020-01-06 16:01:20 -08:00
parent 2208fb3407
commit 2fd66d8510
18 changed files with 51 additions and 51 deletions
+4 -4
View File
@@ -306,11 +306,11 @@ var/list/VVpixelmovement = list("step_x", "step_y", "step_size", "bound_height",
// the type with the base type removed from the begaining
var/fancytype = types[D.type]
if(findtext(fancytype, types[type]))
fancytype = copytext(fancytype, lentext(types[type])+1)
var/shorttype = copytext("[D.type]", lentext("[type]")+1)
if(lentext(shorttype) > lentext(fancytype))
fancytype = copytext(fancytype, length(types[type])+1)
var/shorttype = copytext("[D.type]", length("[type]")+1)
if(length(shorttype) > length(fancytype))
shorttype = fancytype
if(!lentext(shorttype))
if(!length(shorttype))
shorttype = "/"
.["[D]([shorttype])\ref[D]#[i]"] = D