mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
Hopefully should fix some crashing for NTSL.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3413 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -255,7 +255,12 @@
|
|||||||
var/list/textList = new()
|
var/list/textList = new()
|
||||||
var/searchPosition = 1
|
var/searchPosition = 1
|
||||||
var/findPosition = 1
|
var/findPosition = 1
|
||||||
|
var/loops = 0
|
||||||
while(1)
|
while(1)
|
||||||
|
if(loops >= 1000)
|
||||||
|
break
|
||||||
|
loops++
|
||||||
|
|
||||||
findPosition = findtext(text, separator, searchPosition, 0)
|
findPosition = findtext(text, separator, searchPosition, 0)
|
||||||
var/buggyText = copytext(text, searchPosition, findPosition)
|
var/buggyText = copytext(text, searchPosition, findPosition)
|
||||||
if(!withinList || (buggyText in withinList)) textList += "[buggyText]"
|
if(!withinList || (buggyText in withinList)) textList += "[buggyText]"
|
||||||
|
|||||||
Reference in New Issue
Block a user