From 69ba76f16f98b09ed7fd6d6717140b1aa12c118e Mon Sep 17 00:00:00 2001 From: deathride58 Date: Tue, 9 Apr 2019 19:12:59 -0400 Subject: [PATCH] *vzdokh --- code/modules/paperwork/paper.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/paperwork/paper.dm b/code/modules/paperwork/paper.dm index b1f001222b..d6d0a3dc4f 100644 --- a/code/modules/paperwork/paper.dm +++ b/code/modules/paperwork/paper.dm @@ -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, "", laststart) @@ -198,7 +198,7 @@ // Count the fields var/laststart = 1 - while(1) + while(fields < 15) var/i = findtext(t, "", 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, "", laststart) if(i == 0) break