Browse Source

[fixed] agape and vgape not working correctly

FenrirRed 2 years ago
parent
commit
1a859e0b98
1 changed files with 4 additions and 4 deletions
  1. 4 4
      locations/stat.qsrc

+ 4 - 4
locations/stat.qsrc

@@ -307,9 +307,9 @@ if vgape[4] = 0: vgape[4] = 10
 
 if vgape > vgape[1]:
 	vgape[3] = totminut
-	vgape = vgape[1]
+	vgape[1] = vgape
 elseif vgape > 0:
-	if vgape - (totminut - vgape[3])/vgape[4]: vgape -= 1
+	if (totminut - vgape[3])/vgape[4] >= 1: vgape -= 1
 	vgape[1] = vgape
 else
 	vgape[3] = 0
@@ -319,9 +319,9 @@ end
 
 if agape > agape[1]:
 	agape[3] = totminut
-	agape = agape[1]
+	agape[1] = agape
 elseif agape > 0:
-	if agape - (totminut - agape[3])/agape[4]: agape -= 1
+	if (totminut - agape[3])/agape[4] >= 1: agape -= 1
 	if agape = 0: agape[3] = 0
 	agape[1] = agape
 else