Browse Source

[fixed] infinite loop

Lusticon 5 tháng trước cách đây
mục cha
commit
c2015053e1
1 tập tin đã thay đổi với 26 bổ sung25 xóa
  1. 26 25
      locations/cum_cleanup.qsrc

+ 26 - 25
locations/cum_cleanup.qsrc

@@ -68,6 +68,7 @@ if $ARGS[0] = 'cleanloc':
 		l += 1
 		jump 'cleanlocloop'
 	end
+	killvar 'l'
 elseif $ARGS[0] = 'cleandeposit':
 	cumsumbod -= sparrvol[ARGS[1]]
 	cumsumvag -= iif(sparrloc[ARGS[1]]=0,sparrvol[ARGS[1]],0)
@@ -267,67 +268,67 @@ elseif $ARGS[0] = '':
 		KILLVAR 'cum_vol'
 	end
 
-	l = 0
+	n = 0
 	:cumcleanloop
-	if l < arrsize('$sparrnam'):
-		tmp = arrpos('deresidue', sparrloc[l])
+	if n < arrsize('$sparrnam'):
+		tmp = arrpos('deresidue', sparrloc[n])
 		if tmp ! -1 and tmp < arrsize('deresidue'):
 			!! vagina
-			if sparrloc[l] = 0:
+			if sparrloc[n] = 0:
 				!! cannot be completely cleaned with tissues\toilet use\hypno block\no enema kit
-				if FUNC('Cum_Manage', 'check_innards', sparrloc[l]) = 1 _ 
+				if FUNC('Cum_Manage', 'check_innards', sparrloc[n]) = 1 _ 
 				or (hypnoAddict = 0 and (cheatVars['enema'] = 1 or (mc_inventory['enema_kit'] = 1 _ 
 				and (cumspclnt = 10 or cumspclnt = 1 or cumspclnt = 3)))):
-					cumsumbod -= sparrvol[l] & cumsumvag -= sparrvol[l]
-					sparrslc[l] = 0 & sparrvol[l] = 0
+					cumsumbod -= sparrvol[n] & cumsumvag -= sparrvol[n]
+					sparrslc[n] = 0 & sparrvol[n] = 0
 					isprok = 0 & vibratorIN = 0
 				end
 			!! ass
-			elseif sparrloc[l] = 3:
-				if FUNC('Cum_Manage', 'check_innards', sparrloc[l]) = 1 or cumspclnt = 7 _ 
+			elseif sparrloc[n] = 3:
+				if FUNC('Cum_Manage', 'check_innards', sparrloc[n]) = 1 or cumspclnt = 7 _ 
 				or (hypnoAddict = 0 and (cheatVars['enema'] = 1 or (mc_inventory['enema_kit'] = 1 _ 
 				and (cumspclnt = 10 or cumspclnt = 1 or cumspclnt = 3)))):
-					cumsumbod -= sparrvol[l] & cumsumass -= sparrvol[l]
-					sparrslc[l] = 0 & sparrvol[l] = 0
+					cumsumbod -= sparrvol[n] & cumsumass -= sparrvol[n]
+					sparrslc[n] = 0 & sparrvol[n] = 0
 					analplugin = 0 & analplugout = 0
 				end
 			else
-				cumsumbod -= sparrvol[l]
-				sparrslc[l] = 0 & sparrvol[l] = 0
+				cumsumbod -= sparrvol[n]
+				sparrslc[n] = 0 & sparrvol[n] = 0
 			end
 		end
 
-		tmp = arrpos('toclean', sparrloc[l])
-		if tmp ! -1 and tmp < arrsize('toclean') and sparrvol[l] > 0:
+		tmp = arrpos('toclean', sparrloc[n])
+		if tmp ! -1 and tmp < arrsize('toclean') and sparrvol[n] > 0:
 			!! vagina
-			if sparrloc[l] = 0:
-				if cumsumvag * rand(6, 9) / 6 >= FUNC('Cum_Manage', 'check_innards', sparrloc[l], 1) and isprok = 0 and vibratorIN = 0 _ 
+			if sparrloc[n] = 0:
+				if cumsumvag * rand(6, 9) / 6 >= FUNC('Cum_Manage', 'check_innards', sparrloc[n], 1) and isprok = 0 and vibratorIN = 0 _ 
 				or (hypnoAddict = 0 and (cheatVars['enema'] = 1 or (mc_inventory['enema_kit'] = 1 _ 
 				and (cumspclnt = 10 or cumspclnt = 1 or cumspclnt = 3)))):
-					gs 'cum_cleanup', 'cleandeposit', l
+					gs 'cum_cleanup', 'cleandeposit', n
 					if cumspclnt = 3: isprok = 0 & vibratorIN = 0
 				end
 			!! ass
-			elseif sparrloc[l] = 3:
-				if (cumsumass * rand(6, 9) / 6 >= FUNC('Cum_Manage', 'check_innards', sparrloc[l], 1) and analplugin = 0) or cumspclnt = 7 _ 
+			elseif sparrloc[n] = 3:
+				if (cumsumass * rand(6, 9) / 6 >= FUNC('Cum_Manage', 'check_innards', sparrloc[n], 1) and analplugin = 0) or cumspclnt = 7 _ 
 				or (hypnoAddict = 0 and (cheatVars['enema'] = 1 or (mc_inventory['enema_kit'] = 1 _ 
 				and (cumspclnt = 10 or cumspclnt = 1 or cumspclnt = 3)))):
-					gs 'cum_cleanup', 'cleandeposit', l
+					gs 'cum_cleanup', 'cleandeposit', n
 					if cumspclnt = 3 or cumspclnt = 7: analplugin = 0
 				end
 			else
-				gs 'cum_cleanup', 'cleandeposit', l
+				gs 'cum_cleanup', 'cleandeposit', n
 			end
 		else
-			if sparrvol[l] <= 0 and ($sparrnam[l] = '' or sparrloc[l] ! 0 or (sparrloc[l] = 0 and sparrage[l] > 10)): gs 'cum_cleanup', 'cleandeposit', l
-			l += 1
+			if sparrvol[n] <= 0 and ($sparrnam[n] = '' or sparrloc[n] ! 0 or (sparrloc[n] = 0 and sparrage[n] > 10)): gs 'cum_cleanup', 'cleandeposit', n
+			n += 1
 		end
 		jump 'cumcleanloop'
 	end
 	killvar 'toclean'
 	killvar 'deresidue'
 	killvar 'tmp'
-	killvar 'l'
+	killvar 'n'
 	killvar 'lubonus'
 	killvar 'anal_slip'
 	killvar 'vaginal_slip'