This commit is contained in:
deathride58
2019-04-09 19:12:59 -04:00
parent 4137dc66c1
commit 69ba76f16f
+3 -3
View File
@@ -134,7 +134,7 @@
var/locid = 0
var/laststart = 1
var/textindex = 1
while(1) //I know this can cause infinite loops and fuck up the whole server, but the if(istart==0) should be safe as fuck
while(locid < 15) //hey whoever decided a while(1) was a good idea here, i hate you
var/istart = 0
if(links)
istart = findtext(info_links, "<span class=\"paper_field\">", laststart)
@@ -198,7 +198,7 @@
// Count the fields
var/laststart = 1
while(1)
while(fields < 15)
var/i = findtext(t, "<span class=\"paper_field\">", laststart)
if(i == 0)
break
@@ -210,7 +210,7 @@
/obj/item/paper/proc/reload_fields() // Useful if you made the paper programicly and want to include fields. Also runs updateinfolinks() for you.
fields = 0
var/laststart = 1
while(1)
while(fields < 15)
var/i = findtext(info, "<span class=\"paper_field\">", laststart)
if(i == 0)
break