Browse Source

[fixes] infinite loop of death during a gameover

julzor 5 years ago
parent
commit
4345289b70
2 changed files with 6 additions and 3 deletions
  1. 3 0
      locations/gameover.qsrc
  2. 3 3
      locations/stat.qsrc

+ 3 - 0
locations/gameover.qsrc

@@ -1,9 +1,12 @@
 # gameover
 
+$loc = 'gameover'
+$metka = ''
 $menu_loc = 'gameover'
 $menu_arg = ''
 menu_off = 0
 gs 'stat'
+
 '<center><b><font color="maroon">GAME OVER</font></b></center>'
 
 if over = 1:

+ 3 - 3
locations/stat.qsrc

@@ -852,7 +852,7 @@ if pcs_energy < 0:
 	elseif salo = 0 and pcs_stren + pcs_vital <= 0:
 		if Enable_nogameover = 0 :
 			over = 3
-			gt'gameover'
+			if $loc ! = 'gameover': gt 'gameover'
 			exit
 		else
 			$stat_msg += '<BR><font color=red><B>You starved to death, but Cheat Mode keeps you Alive.</B></font>'
@@ -882,7 +882,7 @@ end
 if pcs_health < 0:
 	if Enable_nogameover = 0 :
 		over = 1
-		gt'gameover'
+		if $loc ! = 'gameover': gt 'gameover'
 		exit & !nogameover by illume
 	else
 		$stat_msg += '<BR><font color=red><B>You died from injuries, but Cheat Mode keeps you Alive.</B></font>'
@@ -895,7 +895,7 @@ if pcs_willpwr <= 0 :
 	if pcs_mood <= 1:
 		if Enable_nogameover = 0 :
 			over = 2
-			gt'gameover'
+			if $loc ! = 'gameover': gt 'gameover'
 			exit & !nogameover by illume
 		else
 			$stat_msg += '<BR><font color=red><B>You are insane, but Cheat Mode keeps you Alive.</B></font>'