Browse Source

[fixed] the cycle menu was available even if the menu was disabled

julzor 4 years ago
parent
commit
37ef35397f
1 changed files with 6 additions and 2 deletions
  1. 6 2
      locations/stat_display.qsrc

+ 6 - 2
locations/stat_display.qsrc

@@ -565,8 +565,12 @@ elseif placebopart > 0 and LutH > 0 and knowpreg = 0:
 	$stat_msg += '</font>'
 end
 
-
-if $cycreport_txt ! null: $stat_msg += '<BR><a href="exec:dynamic $d_cycreport_choice"><<$cycreport_txt>></a><br>'
+	if $cycreport_txt ! null and menu_off = 0: 
+		$stat_msg += '<BR><a href="exec:dynamic $d_cycreport_choice"><<$cycreport_txt>></a><br>'
+	elseif $cycreport_txt ! null and menu_off = 1:
+		$stat_msg += '<BR><a href="exec:gs ''obj_din'', ''menu_disabled''"><<$cycreport_txt>></a><br>'
+	end
+end
 
 !!if shame > 0:$stat_msg += '<BR><<$shame>>' & $stat_msg += '<BR>'