소스 검색

[fixes] infinity loop

slanon 4 년 전
부모
커밋
a47fe04f4c
1개의 변경된 파일7개의 추가작업 그리고 5개의 파일을 삭제
  1. 7 5
      locations/placer_sex.qsrc

+ 7 - 5
locations/placer_sex.qsrc

@@ -1452,13 +1452,15 @@ if $args[0] = 'sleep':
 	:loopson
 	minut += 1
 	stime += 1
-	pcs_health += 5
-
-	if stime = 60:stime = 0 & pcs_sleep += 15
+	if recuperation = 0:pcs_health += 5
 
-	gs'stat'
+	if stime >= 60:
+		stime = 0
+		pcs_sleep += 15
+		gs 'stat'
+	end
 
-	if pcs_sleep > 100:
+	if pcs_sleep >= 100:
 		hour = 8
 		minut = 0
 		gs'stat'