Browse Source

[fixes] infinity loop

slanon 4 years ago
parent
commit
a47fe04f4c
1 changed files with 7 additions and 5 deletions
  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'