Pārlūkot izejas kodu

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

julzor 5 gadi atpakaļ
vecāks
revīzija
37ef35397f
1 mainītis faili ar 6 papildinājumiem un 2 dzēšanām
  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>'